IO Exception from File.Delete

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
Never mind. I'd kept the file open with an unclosed reader. Although I'm
still puzzled why the file.move worked.
 
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
 
Back
Top