-
Deleting a program
Hey guys after I run a program I have created and I try to delete the file it is in I get the message:
"access is denied make sure the disk is not full or wrute protected and that the file is not currently in use."
I have looked in my processes and can't see anything, could it be a pointer problem or does anyone know why this would happen?
Thanks.
-
are you deleting it from a floppy disk? If so, maybe the disk has the little black button thing slid into the position to where its contents cant be altered?
-
The executable has been locked by the operating system. You will have to end the process in order to delete it.
-
When I look in the running processes it doesnt appear to be there, how come the system would lock it, or could it be a pointer fault?
-
What exactly are you trying to delete? It sounded like you are trying to make a program that deletes it's own exe file. If it's not an executable file, then it's possible that another program is using the file, or that there's something wrong in your code
-
if it's a windows application, it could be that you didn't handle some message correctly (WM_CLOSE perhaps?).