dcl_blockview_loaddwg locks dwg ??

Started by commodore, August 08, 2008, 06:29:24 AM

Previous topic - Next topic

commodore

When I display a dwg with dcl_blockview_loaddwg then close the form and go to windows explorer and try to delete the file I often get the following windows error...,
"Error Deleting File or Folder"
"Cannot delete P8: It is being used by another person or program."
"Close any programs that might be using the file and try again."

P8.dwg is the file name.
There are no corresponding dwl, bak or any other files.
Sometimes I can delete the file right away, sometimes I have to wait up to 30 seconds.
Closing ACAD and/or OpenDCL does not make any difference, the files still are locked.
Tried adding dcl_blockview_clear, did'nt help

I am trying to use this as a preview to let the user see if they want to keep or delete an existing file so if they want to delete it my program would do do it for them after closing the form but if OpenDCL is not letting go of the file for an extended period then this will be a problem.

Any insight on this?

jb

this is a total shot in the dark but

(dcl_Control_SetEnabled BlockView1 nil)

Disable the BlockView control?
James Buzbee
Managing Memeber
Black Horse Development, LLC

owenwengerd

Test this in Alpha 22 and let us know whether it changes anything.
Owen Wengerd (Outside The Box) / ManuSoft

commodore

No change with Alpha 22 but I don't think it's going to be an issue for me since from within my Lisp program it does not seem to be an issue.
I have been able to delete the previously viewed file 100% with out a problem from Lisp, just not from windows explorer right away.
I'm starting to think it's AutoCad that's hanging onto the file and not OpenDCL.