<?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: File geodatabase debugging lock problem, what are &amp;quot;rd&amp;quot; locks? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107836#M2818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way to share locks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;two different processes want to insert/ edit data of the same featureclass within the same geodatabase parallel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well I could make this manually due to a loop until the lock is released and the other process get the lock and so on. but is there an esri method doing like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so one shared lock all processes can edit/ insert data without exceptions because arcgis is queuing the locks etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 09:32:18 GMT</pubDate>
    <dc:creator>SebastianKrings</dc:creator>
    <dc:date>2012-03-26T09:32:18Z</dc:date>
    <item>
      <title>File geodatabase debugging lock problem, what are &amp;quot;rd&amp;quot; locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107827#M2809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently debugging a problem with locks on a file geodatabase for some functions that were done programmatically.&amp;nbsp; I notice there are ".sr" locks, which are schema locks, i.e. not change to the schema allowed.&amp;nbsp; There are ".ed" locks, edit locks, no edits on the data allowed.&amp;nbsp; There is another lock file, ".rd" lock, this one I am puzzled with.&amp;nbsp; Does anyone know what rd locks are?&amp;nbsp; The only mention it would be some unreleased cursor.&amp;nbsp; Still I would like to know if it puts an edit lock on the featureclass.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 18:03:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107827#M2809</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-03-31T18:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107828#M2810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Further developments, I discovered that having Joins with the option keep only matching records (inner join) in a an open arcmap session puts the "rd.lock" on the tables and featureclasses involved in the join.&amp;nbsp; I am not sure why but they put an edit lock on the tables and featureclasses.&amp;nbsp; Regular left joins are ok.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 17:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107828#M2810</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-04-01T17:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107829#M2811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having the same problem with "rd" locks in our file geodatabase. I understand that multiple people cannot edit at one time, and that one person cannot edit while others are viewing the same layers. But we have an issue where once someone is in the map with the layer, and then closes out, it keeps the "sr" lock active, and sometimes an "rd" lock too. This prevents one user from being able to edit that layer, even though everyone else is closed out. Typically, that person will have to restart their computer to get the lock to finally release. This is a big problem, as you shouldn't have to have everyone restart their computer in order to edit. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you come up with a solution on this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 20:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107829#M2811</guid>
      <dc:creator>JenniferPhillips</dc:creator>
      <dc:date>2012-01-24T20:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107830#M2812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my case I had two ArcMap sessions that need to edit the data in turn (arcmap1 check out, arcmap 2 edit, arcmap1 clean and check-in).&amp;nbsp; I changed the workflow to have one session do all the edits (edit, clean and check-in.)&amp;nbsp; Aside from that, I would suggest using SQL express if you can (in my case this is not practical for various reasons.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 12:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107830#M2812</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-01-25T12:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107831#M2813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only way a lock file will persist is if a process is maintaining it.The lock files are created as "delete on close" so the operating system will delete them when the creating process closes. Is your file geodatabase local or on a network disk? What version of ArcGIS are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107831#M2813</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-01-25T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107832#M2814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately the source-question has not been answered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I will ask in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What are these locks all. Is there in ESRI documentation any explanation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the full name of these abbreviations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What will they lock each?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which operations (e.g.) will arise such locks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Known locks by us (feel free to explain further existing locks):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RD-Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SR-Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WR-Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ED-Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some keywords we can imagine these locks are affecting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Share-Read-Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read-Data(set)-Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Refresh-Data-Lock (because refreshing the map created an RD-Lock)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write-(Read-)Lock (by an insertionCursor (FeatureClass.Insert())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit-(Data-)-Lock (by an editSession (IWorkspaceEdit.StartEditing()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be grateful if someone coul illuminate this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 13:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107832#M2814</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2012-03-21T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107833#M2815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;RD-Lock - Read Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SR-Lock - Schema Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WR-Lock - Write Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ED-Lock - Edit Lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Locking is by process, not user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A write lock will be held until a Insert Cursor goes out of scope. In an edit session a edit lock is taken out. A write lock is only taken out on save edits. A read lock can not be taken out during a write lock.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 15:04:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107833#M2815</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-03-21T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107834#M2816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx for this summing answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I still have a question refering the ED and WR Lock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;WorkspaceEdit.StartEditing() //creates an ED-Lock.
IFeature.store();
WorkspaceEdit.SaveEdits() and WorkSpaceEdit.SopEdting(true) //will create an WR lock for a very short time i guess and then deletes the ED-Lock and the WR Lock as well?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;FeatureClass.insert() //creates an IFeatureCursor and an WR-Lock. This WR lock is deleted when the object is not used any more.&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I able to speed this behavior up? At the moment I am trying IFeatureCursor.Flush and IFeatureCurso = null but I cannot see the lock released faster. This one will be deleted when the method within I use the insertCursor has finished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could a COM-Releaser be useful? The thing is, it could be possible that after using the insertCurso the method still is not ready or has to wait for other threads...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that an worspace edit-session should be used to store one feature. ESRI documentation says that when having three ore more features for better performance an insertCursor shall be used. Now I wonder if the edit session, calling the save edits only at the ends, were a way to hold an WR-Lock shorter than having the insertCursor still opend. What I do not know at this moment is if the ED-Lock also blocks other processes from working with the Map/Geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:31:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107834#M2816</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2021-12-11T06:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107835#M2817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A different process can still read a file with a edit lock. It�??s only with a write lock that a read is not possible. To improve performance buffering was added to file geodatabase at 10.1? Prior to 10.1 buffering was not active. At 10.1 a write lock will only be taken out every 1000 features or when flush is called when the inserts are performed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 15:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107835#M2817</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-03-22T15:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107836#M2818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way to share locks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;two different processes want to insert/ edit data of the same featureclass within the same geodatabase parallel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well I could make this manually due to a loop until the lock is released and the other process get the lock and so on. but is there an esri method doing like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so one shared lock all processes can edit/ insert data without exceptions because arcgis is queuing the locks etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 09:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107836#M2818</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2012-03-26T09:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107837#M2819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The file geodatabase is not designed to do that.&amp;nbsp; It is designed do handle multiple readers and one editor.&amp;nbsp; RDMS geodatabase are specifically designed to do that and esri has SDE for that.&amp;nbsp; I am not sure what the status for multi-editor on a sql express geodatabase, technically it should work but it may have been clamped down to push users towards ArcGIS server solutions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 13:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107837#M2819</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-03-26T13:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107838#M2820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a different but similar problem. I teach in a lab, and occasionally have lock files that persist AFTER ArcGIS is closed, the user is logged off, the computer is rebooted, they are NOT within a file (or any) geodatabase (simply shapefiles that are, often, being joined to something but not always) in a lab setting on a virtual drive, usually. They are so numerous now they are hurting the ability of my students to work--they cannot edit their files, and no way can I save them such that they will work. They are (evidently) SR locks. Nobody can delete them, not even our IT people (I think they had SOME luck in Linux, finally, but it is becoming a real problem). Does anyone know how I can prevent my students from creating these in the first place (may be that they are crashing out, but once they log off, should they not go away??) and/or how to deal with them once they exist? Please help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 17:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107838#M2820</guid>
      <dc:creator>MaryPasse-Smith</dc:creator>
      <dc:date>2014-04-03T17:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase debugging lock problem, what are "rd" locks?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107839#M2821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this on Linux or Windows (version)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What version of ArcGIS? What product (Engine, Desktop, Server)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On Windows the lock files are created as "delete on close", so even if the application crashes that files will delete. Windows takes care of it. The only reason a lock file would stay in existence if another process (process, not user) has the lock or if you pulled the pug on the PC. If the lock file is still in existence, the process will normally delete it and create a new one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 22:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/file-geodatabase-debugging-lock-problem-what-are/m-p/107839#M2821</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2014-04-03T22:12:58Z</dc:date>
    </item>
  </channel>
</rss>

