I have been chasing what should be a simple problem for a day or two now. I
have done the google thing, but all the problems listed (at least so far)
have been problems with web applications.
My application is a WINDOWS app, and during the run I create a directory
called "CURRENT FLIGHT", and inside that directory I create several other
directories and files inside those. I update those files during the flight
phases. After the flight ends, I need to extract information from a XML file
in one of those sub-directories, create a new directory with our standard
name, and "move" all the directories and files from the current directory
into the new one. During shutdown this all works perfectly. HOWEVER, there
are events during the flights that I respond to, and one of those needs to do
the above process of creating a new directory, and move the files while in
flight, then continue processing. When I try this I get IO.Exception stating
"Access to the path <current flight directoryis denied". I created it, I
have been updating files in directories under it, but now I can't access it?
Hmmm....I am obviously missing something. Can anyone tell me what?
By the way I DO make sure all the files that I have been writing to inside
that directory are closed before I do any of this processing.
Thanks.
WhiteWizard
aka Gandalf
MCSD.NET, MCAD, MCT