Timeline for Remove .sr lock on shapefile after removing layer from map using ArcObjects and C#
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 19, 2021 at 15:06 | comment | added | danielm | I guess my questions would be, do you need to load and unload into the table of contents or can you work with these shapefiles directly? Does this need to be done within ArcMap? In my experience lock files can be a little more cooperative if not loaded into the map. Also if this can be done outside of ArcMap, ending the thread the feature classes are opened in will release locks as well, so you can use multiple threads to accomplish your tasks. Additionally, if outside of ArcMap the number of locks may simply not be an issue. | |
Mar 18, 2021 at 16:56 | comment | added | Weequay | Danielm, thank you for the response. Unfortunately, I don't believe this will be a solution for me, because I am potentially opening 1000+ shapefiles and ArcMap is retaining lock files on all of the shapefiles. Eventually this causes ArcMap to choke and it bombs out. I am trying to prevent this from happening. That is why I need to do away with the lock files. As an fyi, I am cycling through folders and temporarily loading in the shapefiles so that I can work with them and then I remove them from the map and create a new map document for the next folder. | |
Mar 18, 2021 at 16:19 | history | answered | danielm | CC BY-SA 4.0 |