11-23-2015 01:30 AM
Hi all!
I use the .ini-Toolbox to save measurement data together with the related settings. To limit the size of the files, every hour a new file is generated. Everything works very well, BUT, after 30-35 hours, the Ini_WriteToFile function returns me an -95 "File access permission denied." error. The file seems not to be opened, because I can open him with a editor.
Any ideas out there?
It's pretty hard to figure out what's wrong because I always have to wait 30-35 hours until the error occurs.
11-24-2015 07:17 AM
Hi Thosch,
could you try to create new folders for the files let's say every day and watch, if this happens again.
Best regards,
Melanie
11-24-2015 07:35 AM
Ok, good idea. I try it out and let you know.
Best,
Thomas
11-25-2015 12:52 AM
Hi Melanie,
I found the reason, but unfortunately not the error. Not yet 😉
The variable who holds the file name of the active file gets corrupted. This is the reason for the Access denied error. It's a bit misleading.
So, I try to find out who is changing the variable.
Best,
Thomas
11-25-2015 02:49 AM
Arghh, It's a good old buffer overflow. I forgot the range checking of a data array.
Best,
Thomas