How to close editing session with shape file

05-23-2012 02:32 AM
Occasional Contributor III
I create shape file and after that this file is locked. In directory appears file

How I can unlock this file in the same program just after creating shape file?
I need other copy of program can recreate this file.
Thanks for any idea or reference!
0 Kudos
1 Reply
Regular Contributor II
sr locks are schema locks.  So just opening the shapefile will create a schema lock no edits necessary.  You need to explicitly release any references to the featureclass and workspace using the comreleaser.  It is a bit of a needle in a hay stack to find them all though.  It is the only way I know how to do it.  I remember once having to wade through thousands of lines of code to do it, the only way was to set break points, monitor the locks and comment out section by section of code.
Good luck
0 Kudos