Hi all,
I have an ArcGIS Pro add-in that has been working on all 3.x versions of ArcGIS Pro but fails on 3.5. Its code creates a File Geodatabase, imports some feature classes, and then creates a zip file of the File Geodatabase. Since version 3.5, the creation of the zip file fails with the following error message:
The process cannot access the file {path_to_geodatabase}.gdb\a0000000d.gdbtable because it is being used by another process
The File Geodatabase and all its feature classes are successfully created, and the code uses using statements for the geodatabase, feature classes, insert cursors, etc., so that they are all properly disposed. Also, the code is called on the Main CIM Thread (MCT) using QueuedTask.Run().
I noticed that since 3.5 two lock files are kept inside the File Geodatabase folder, and they are not automatically deleted no matter how much time you wait. This did not happen with earlier versions of ArcGIS Pro.
Has a new behaviour regarding File Geodatabase locking or the MCT been introduced in 3.5? Is there a way to remove programmatically the lock files, or make sure that the process terminates appropriately using the ArcGIS Pro SDK for .NET?