Which data format to choose to avoid file lock restriction

Discussion created by jjoalland13 on May 9, 2012
Latest reply on May 16, 2012 by jjoalland13
I am working on a standalone application (C# VS 2010 arcGIS Engine 10) continuously running on a single computer. (this application should never stop).
part of it is a simple Map Document manager with MapControl+TOCControl : so user should be able to open MXD document, change few things like layer symbology, transparency, map name, and Save the map.
My map document and data files has to be stored this way : 1 folder for each Map Document containing 1 MXD file and all associated data files (vector data).

So each time the user open a map document (IMapDocument.Open), lock files are created, and as the application never stop, these lock files are not (never) removed, even if the user close the map and open another one. (or maybe I do something wrong there in my code).

My issue is that the user should be able to Delete a Map according this process : delete the folder containing the map document and all content : the mxd file and all data files (like shapefile). But once the map document has been opened, there are always lock files there and full delete of my folder is not possible.

Shapefile, file geodatabase and personal geodatabase generate LOCK files, so what kind of data format could I use ?

the important point is that my application does not allow data editing, I am only developing functionnalities for map configuration (symbols, zoom scale) and drawing temporary geometry in graphic layers... so I really don't need these LOCK files. I just need to use my vector data as basemap !
So I guess, I definitly need a read-only data format...

I've tried base map layer which is not working because it's a group layer still loading data such as shapefile of feature class
I've tried SDC data which is working fine, but i don't think I can generate my own SDC files with ArcGIS Desktop (is it possible ?)

any solution ?