IO Exception from File.Delete

G

Guest

I'm getting IO exceptions when I try to delete certain files. The files
exists, and, strangely, I'm able to call File.Move on them. But then, if I
try to delete the file which I just moved, I get the IO Exception. Anybody
know what could cause that?
 
G

Guest

Never mind. I'd kept the file open with an unclosed reader. Although I'm
still puzzled why the file.move worked.
 
H

Hilton

Dan said:
Never mind. I'd kept the file open with an unclosed reader. Although I'm
still puzzled why the file.move worked.

For the same reason that renaming the file on the Pocket PC works. Now, I'm
not sure what that reason is, but it's the same functionality. Try keep a
file open, you can then tap-n-hold and rename. This can cause WIERD stuff
to happen on a PC and probably the same on a Pocket PC.

Hilton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top