<?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: Can shapefile locks by released through the API? in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-shapefile-locks-by-released-through-the-api/m-p/254384#M1606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is not possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 15:54:08 GMT</pubDate>
    <dc:creator>AndreiIvanov</dc:creator>
    <dc:date>2011-05-31T15:54:08Z</dc:date>
    <item>
      <title>Can shapefile locks by released through the API?</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-shapefile-locks-by-released-through-the-api/m-p/254383#M1605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to release shapefile locks through the .NET API after processing the shapefile?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, there are lock files on the shapefile after executing the following, even though the table instance has gone out of scope and been disposed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string shapefile = "C\myshapefile.shp";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGISExplorer.Data.Table tbl = ESRI.ArcGISExplorer.Data.Table.OpenShapefile(shapefile);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (tbl)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; foreach (ESRI.ArcGISExplorer.Data.Row row in tbl.GetRows())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that ESRI.ArcGISExplorer.Data.Row and ESRI.ArcGISExplorer.Data.RowCollection do not implement IDisposable and cannot be disposed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The locks will prevent an external process from writing to the shapefile and - as far as I can tell - can only be released by closing ArcGIS Explorer or by changing the map document, which is not an option. How can I release the locks and allow the external proces to write to the shapefile?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the arcpy (Python) library, you delete the cursor object and the lock is released. What is the equivalent in the ArcGIS Explorer API?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 04:49:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-shapefile-locks-by-released-through-the-api/m-p/254383#M1605</guid>
      <dc:creator>DrewMellor</dc:creator>
      <dc:date>2011-05-30T04:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can shapefile locks by released through the API?</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-shapefile-locks-by-released-through-the-api/m-p/254384#M1606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is not possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 15:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-shapefile-locks-by-released-through-the-api/m-p/254384#M1606</guid>
      <dc:creator>AndreiIvanov</dc:creator>
      <dc:date>2011-05-31T15:54:08Z</dc:date>
    </item>
  </channel>
</rss>

