IniWriter throws null reference exception
Brought to you by:
bmatzelle
The Dispose() method must check that objects exist before calling Close(). i.e.
if (textWriter != null) textWriter.Close();
if (baseStream != null) baseStream.Close();
Otherwise IniWriter.Dispose() will throw exception. Typically baseStream is not defined when this occurs.