2008-08-08 13:29 UTC
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?
"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?