Error during GM_LoadLayerList() is leaving file handle open

jfergusjfergus Global Mapper UserPosts: 5
edited January 2013 in SDK

Hi, I'm using C# in a Windows Forms app built in VS 2010. I have a scenario where I'm invoking a call to GM_LoadLayerList() on a file that I know is badly formatted, and as expected the DLL is returning a GM_Error_LoadError. My application then attempts to delete the file and it's getting an error because the DLL apparently opens the file, dislikes the format, returns an error code but doesn't close the file.

Is there an option I can set or a means by which I can get the file to close?

Sign In or Register to comment.