Closing a file doesn't release it
Posted: 25 Feb 2009, 20:12
I'm testing the CADViewerControl to view an HPGL file. When I load a file using either LoadFile or ShowLoadFileDialog and then call CloseFile, the file remains locked. I've tried calling
This doesn't help.
You can recreate this in the ViewerControlVB demo. Open a file in the app. Close the file. Then, while the app is still running, go to Windows and try to delete the file. It remains locked.
Is there a workaround?
Thanks
Code: Select all
MyControl.Unregister
MyControl.Dispose
MyControl = Nothing
You can recreate this in the ViewerControlVB demo. Open a file in the app. Close the file. Then, while the app is still running, go to Windows and try to delete the file. It remains locked.
Is there a workaround?
Thanks