10-23-2012 06:32 AM
Hi all
RT OS (Desktop) has a problem: If disk is full RT OS won't start.
So I have to limit the amount of file output of my RT application to a reasonable value.
To do this I read free disk space at start of my application (using GetFreeDiskSpaceEx), so I can enshure that MY apllication will not write more data than available space (e.g. by deleting old data).
But I don't know how much disk space the operating system will need while running.
Can anybody tell me a value to calculate with?
Many thanks in advance!
Yeti0815
Solved! Go to Solution.
10-23-2012 06:43 AM
I can't tell you a value but I am not sure if it s a good idea to squeeze out the last byte of your disk... In any case you should query the return value of your write functions which will tell you if disk write was successful.
10-23-2012 10:44 AM
A general rule of thumb is that the OS needs roughly 25MB of storage for temporary files, .ini files, persistent storage, and the like. Don't suck your usage below 25MB and you should be able to minimize your surprises.
NOTE: This number was obtained empirically via not-so-stringent testing. Your mileage may vary.
-Danny
10-24-2012 03:05 AM
Hi Texas_Dias,
thank you for the info. I'll keep 50MB free, then I will be on the safe side.
Yeti0815