LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ini file deleted

While my application is running, my ini file seems to disappear.  This happens very seldom so it is hard to fine.  My application is multithreading but only one thread should be accessing this file. 


Advice on how to find this bug?

0 Kudos
Message 1 of 3
(3,363 Views)

The first thing I would do is download Process Monitor from Microsoft. It's a free tool that gives detailed information about all file accesses. Run it, go to the Filter>>Filter... menu item, and in the resulting dialog, create the filter: [Path] [ends with] "yourfile.ini" then [Include]. Leave Process Monitor running, and once you've noticed your ini file has disappeared, check back.

 

That ought to at least give you some new clues to go on.

 

Mert A.

National Instruments

Message Edited by Mert A. on 10-23-2008 05:21 PM
0 Kudos
Message 2 of 3
(3,350 Views)
I would also advise turning on "Break On Library Errors" if you don't have this on already.  What could be happening is that you're passing the wrong parameter down as a file handle to something, and every once and a while that parameter is the same value as the file handle of your opened ini file so strange things could happen.  Chances are, most of the time this parameter is not a valid file handle and will cause a library error.
0 Kudos
Message 3 of 3
(3,316 Views)