I believe we may have just fixed a bug relating to connections not properly being closed by the server. This could cause locking on files that you eventually need to update or replace. I don't believe there is a workaround short of restarting the server. If you have regular nightly updates of files you could schedule a restart prior to that. If you have an application that is updating the files during the day I'm not sure of a solution. This possibly applies to both SDF and SHP.
I believe a recent fix was submitted. If you were to build the current MGOS from source this problem would likely disappear. There is a chance that disabling connection pooling may reduce the issue, but I believe this is not on by default for SDF or SHP. This was a server side fix. Regards, Dave -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Rizzo Sent: Monday, June 04, 2007 6:14 AM To: [email protected] Subject: [mapguide-users] file IO exception Hello, I am having difficulty with my project - it seems that my sdf feature sources are being locked by MapGuide and MapGuide never seems to release them. I tracked the issue down to the simple act of opening and closing a feature reader. I commented out my code until the problem went away and then I started adding lines back until the problem returned. When I add these two lines back, the problem returns, and when I comment them out again, the problem goes away: featReader = featureService.SelectFeatures(layerResId, layerClassName, queryOptions); featReader.Close(); That's it - just opening and closing the feature reader puts the sdf file into a "locked" state, where Studio throws a file IO exception whenever I try to reload that resource. I realize that I can get around the problem by restarting the MapGuide service, but I would like to get to the bottom of this problem so that I can update my data without resetting my server every time. Any suggestions/ideas? Jon -- View this message in context: http://www.nabble.com/file-IO-exception-tf3864815s16610.html#a10948564 Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
