I spend an inordinate amount of my programming time trying to deal with schema locks in Python. I often generate numerous temporary files and many end up with schema locks that I can't remove unless I quite PythonWin. Schema locks prevent me from deleting temporary files, deleting fields and renaming files. Locks are on geodatabases, shapefiles, and .vats. Sometimes I can't get anything done because I am t rying to manage schema locks. Sometimes if programming in Python I will have an ArcMap window open. Even if there is nothing in ArcMap and I never use it, the locks will not go away until I close ArcMap. Can't there be a python command that is analogous to closing ArcMap so that locks will be deleted? Schema locks are way more harmful than helpful if I calculate the amount of time I have spent trying to manage for them. In fact, I have never ever had a valid use for a schema lock or been glad it was there. They are only trouble in my world of Pytyhon programming. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.