<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to release a raster file from locking after deleting it's layer from arcmap using arcobjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-a-raster-file-from-locking-after/m-p/292212#M7602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually after asking&amp;nbsp;a friend , the perfect working solution is to use the Arcmap delete tool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 12:40:16 GMT</pubDate>
    <dc:creator>ShehabAhmed2</dc:creator>
    <dc:date>2016-10-13T12:40:16Z</dc:date>
    <item>
      <title>How to release a raster file from locking after deleting it's layer from arcmap using arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-a-raster-file-from-locking-after/m-p/292211#M7601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating an addin in which I need to delete the raster file after deleting it's layer from the current map.&lt;/P&gt;&lt;P&gt;The layer is deleted no problem.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ArcMap.Document.FocusMap.DeleteLayer(layerToRemove);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ArcMap.Document.UpdateContents();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ArcMap.Document.ActiveView.Refresh();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Marshal.FinalReleaseComObject(layerToRemove);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is this: when I try to delete the source file, it gives me IO exception that is the file is in use with arcmap process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 16:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-a-raster-file-from-locking-after/m-p/292211#M7601</guid>
      <dc:creator>ShehabAhmed2</dc:creator>
      <dc:date>2016-10-06T16:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to release a raster file from locking after deleting it's layer from arcmap using arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-a-raster-file-from-locking-after/m-p/292212#M7602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually after asking&amp;nbsp;a friend , the perfect working solution is to use the Arcmap delete tool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-a-raster-file-from-locking-after/m-p/292212#M7602</guid>
      <dc:creator>ShehabAhmed2</dc:creator>
      <dc:date>2016-10-13T12:40:16Z</dc:date>
    </item>
  </channel>
</rss>

