Re: death due to CORRUPTED_INI_FILE

Jouni Miettunen (jouni.miettunen@ccc.fi)
Mon, 11 Nov 1996 08:46:40 +0200

Hello,

>The reason in my case was that something had actually been storing garbage to
>the INI file (a Gen object which tried to save an uninitialized string buffer

When I took a look at the INI file, there indeed was garbage at the end.
I think that would suggest that one (last?) of my strings wasn't good..

>As a "generic" idea, I'd try and step through all the places where your new
>keys are written, to see whether the write calls are passed the correct
>arguments.

Yep, I did just "let's write the values" version, I didn't have specs to
write any reasonable error checking. Now I do.

>Alternatively, you could add an InitFileCommit() call after each of the calls
>and see which one fails. Not recommended for the retail version, though... :-)

You know, this is an excellent suggestion! But first I'll write some 50+
error checking functions..

>ciao marcus

--jouni