File handle is persisted after an invalid Definition Query is executed, potentially causing sharing violations.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM000202
Submitted
November 2, 2005
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
9.1
Version Fixed
9.2
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Workaround
Changing the data source of the affected layer by going into Layer Properties->Source tab, clicking on Set Data Source and then selecting another file will release the lock. So the user can go into Windows Explorer, find the file(s) in question (make sure to take all of the files *.shp, *.xml, *.prj, etc.) and copy and paste them to another location. Then, change the data source to this newly copied file. The file handle will be broken. It's not pretty but it works. User notes he cannot get this to work reliably in code, and thus requested that the issue be raised in status.