File handle is persisted after an invalid Definition Query is executed, potentially causing sharing violations.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM000202
已提交
November 2, 2005
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
9.1
修正版本
9.2
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
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.