<?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: arcgis Map c# The process cannot access the file C:\Users.. because it is being u in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93121#M2480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Very thankss for your anwers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I will use dispose() or IDataset.Delete but dont this metods .... when I called this metods only becoming Equals and ReferenceEquals.&amp;nbsp;&amp;nbsp; which is .dll file missing&amp;nbsp;&amp;nbsp; what do should I for it.&amp;nbsp; also I added to ESRI.Arcgis.Carto and other .dll files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2012 09:40:06 GMT</pubDate>
    <dc:creator>mustafaguner</dc:creator>
    <dc:date>2012-08-27T09:40:06Z</dc:date>
    <item>
      <title>arcgis Map c# The process cannot access the file C:\Users.. because it is being used</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93117#M2476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;0&amp;nbsp; down vote&amp;nbsp; favorite&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem in arcgis c#. I am using Arcgis axMapControl component and adding image to it but I can not delete image when wanted to delete from axMapControl component... I have get a exception such as " The process cannot access the file C:\Users.. because it is being used by another process " I need your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; and verryyy thankss for your helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;code &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void Add_map()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRasterLayer my_raster = new RasterLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_raster.FromFile(path);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AxMapControl1.AddLayer(my_raster);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //--------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void Delete_map()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AxMapControl1.DeleteLayer(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.File.delete(path);&amp;nbsp;&amp;nbsp;&amp;nbsp; //There is a Exception.... This problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 13:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93117#M2476</guid>
      <dc:creator>mustafaguner</dc:creator>
      <dc:date>2012-08-13T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis Map c# The process cannot access the file C:\Users.. because it is being u</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93118#M2477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can someone help me ..... very important &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 12:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93118#M2477</guid>
      <dc:creator>mustafaguner</dc:creator>
      <dc:date>2012-08-23T12:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis Map c# The process cannot access the file C:\Users.. because it is being u</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93119#M2478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before removing the layer from the map you should disconnect it from its data source by calling IDataLayer2.Disconnect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 12:59:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93119#M2478</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-08-23T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis Map c# The process cannot access the file C:\Users.. because it is being u</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93120#M2479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For files added to a map or a map control, AO keeps a lock on them even when they are removed from the map or map control.&amp;nbsp; You can try using disconnect or even call the com release on the raster but I have had more luck using IDataset.Delete and IDataset.CanDelete in those cases rather that calls to system.io.file.delete.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 14:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93120#M2479</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-08-23T14:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis Map c# The process cannot access the file C:\Users.. because it is being u</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93121#M2480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Very thankss for your anwers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I will use dispose() or IDataset.Delete but dont this metods .... when I called this metods only becoming Equals and ReferenceEquals.&amp;nbsp;&amp;nbsp; which is .dll file missing&amp;nbsp;&amp;nbsp; what do should I for it.&amp;nbsp; also I added to ESRI.Arcgis.Carto and other .dll files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 09:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-map-c-the-process-cannot-access-the-file-c/m-p/93121#M2480</guid>
      <dc:creator>mustafaguner</dc:creator>
      <dc:date>2012-08-27T09:40:06Z</dc:date>
    </item>
  </channel>
</rss>

