The last acitve directory in my code is not being deleted. The delete function works, however something is interfering and causing a failure. No error is being reported. What things (no DOS boxes running) could be interfering?
Printable View
The last acitve directory in my code is not being deleted. The delete function works, however something is interfering and causing a failure. No error is being reported. What things (no DOS boxes running) could be interfering?
Is the last directory the current directory?
Sally
It should not be. I have tried placing _chdir("\\") to ensure that the current directory was nowhere near the directory I was trying to delete. It had no effect on the problem. Any other ideas?
1) directory readonly
2) someone else on the network using the directory at the moment
3) someother program on your computer isubg the directory at the moment
4) the directory is shared on a network
.....
Sally
Thanks...But it can only be that some other internal function in the software is using the directory...It only is a problem when the project was the last acitve, ie that no other project has been opened or created since activating the first. When deleting projects that were not recently (the last prior to deletion), there is no problem. A strange problem...
can you post your code and I'll take a look at it...
please put it between
the '[ ccode ]' and '[ /ccode ]' statements
is it snow 21 past midnight where I am, so I'll not be able to look at it for some hours
Sally
I would, but since I do not know exactly where the error is occuring, I do not know what code to post. The directorydelete I am using is the NukeDirectory code that is posted in CodeGuru. However I know it works, as I use the code in several instances and am only having problems with one. Thank you for your thoughts though.