Program Terminates On File Move
Posted
by Merus
on Stack Overflow
See other posts from Stack Overflow
or by Merus
Published on 2009-02-16T04:58:38Z
Indexed on
2010/06/09
10:02 UTC
Read the original article
Hit count: 133
I have a .Net program that, as one of its functions, takes a file from a user-specified directory and puts it in another, special, directory, specified via UNC (which may or may not be local). I don't open any of these files in this part of the code.
There's this bizarre bug I'm having where, on a Windows Server 2003 SP2 VM, this program randomly does a hard abort while doing the move to a local folder. It just terminates. No exception, no logging, and it doesn't appear to happen at any particular moment. I can't reproduce this problem on my development machine, and it only appears to happen during the copy of a particular kind of file that's about a megabyte or so. There are other formats copied to different directories using very similar code, all smaller, and they work fine.
Why would a Windows .Net program do a hard abort like this? What can I do to fix it?
© Stack Overflow or respective owner