In a little program I knocked up, I'm using ini files. When the program closes, it saves some things to the ini file.
By accident, I found that when the program is on an unwritable medium (eg CD), it comes back with an error message along the lines of "Cannot write to INI file", which keeps on coming back, no matter how many times you press OK. The only way I could kill it in the end was to use ProcessExplorer (Not even TaskManager worked).
Can someone suggest to me how I'd get around this error, and replace it with my own (Which would be a single message of "Unable to save settings" and then the program finishes closing)
0 · ·