Click here to Skip to main content
15,917,005 members

Comments by mike1989 (Top 6 by date)

mike1989 27-Apr-11 12:00pm View    
Yes, I do know what sleep does. My intention was to just show an example of how the system clock could be use to capture a small time increment. I put the Thread.Sleep( 2); because with out it there is no notable difference, the result is 0.

I am sure you are aware that in the .Net platform things do not always happen in real time as you would expect.
mike1989 26-Apr-11 11:18am View    
I wish I could. There are 1550 lines of code in this class, but only two places that deal with the opening and closing of the files. Most of the code is methods for decoding different blocks of data in the input file.

Do you know of a way I can upload it here?
mike1989 26-Apr-11 11:13am View    
Thanks for the advice :-)
mike1989 25-Apr-11 16:30pm View    
I though the same thing, why would I only see this exception while running the installed version and during the times running in the IDE?


I have verified that I am closing the StreamReader object everytime I use it, like this

finally
{
if ( reader != null )
{
// make sure the file is closed
reader.Close();
reader.Dispose();
}
}
mike1989 25-Apr-11 16:23pm View    
Sorry,

I have revised the question. By weird I mean that while I was test running the code using the IDE, All code executed perfect. But after installing the software and executing it directly from Windows with out the debugger, the software was throwing exceptions about the data file being locked.