10-31-2007 11:40 AM
10-31-2007 12:08 PM
10-31-2007 12:24 PM
@mehdi - CV wrote:
Hi everyone,Another guess of mine is that maybe this has to do with the PC having the power cut from it in the middle of a read/write operation. This does happen with my system.Any ideas would be appreciated.Thanks,Mehdi
If you're losing power in the middle of a file IO operation, that would be my first guess for the corrupted files.
Is there any way you can correlate the power loss events with the corrupt files?
Second guess would be what Christian suggested about some one saving the files in Excel format instead of ASCII format after viewing in Excel.
Ed
10-31-2007 01:05 PM
11-01-2007 01:26 PM
I'd still have to say the most likely cause is the power loss.
Try coding up a way to log when there's a power loss. I've done this writing a specific line (Shutdown=Good) into a text file every time the application is stopped in the normal way. The first thing you do when the application starts is to read this file and see if it reads "Good" or "Bad". If it's Good, then overwrite the line with "Shutdown =Bad". When you lose power, the "Bad" will not be changed to "Good" and when you restart, the check that runs first will catch it and you can write the time/date to a log file to show the power loss.
Ed