I'm having some troubles with wxFileConfig not writing to the user data file when calling Flush(). I'm doing a
Code: Select all
long m_foo=42;
[...]
wxConfigBase::Get()->Write(_T("foo"),m_foo);
wxConfigBase::Get()->Flush();
Code: Select all
delete wxConfigBase::Set((wxConfigBase *)NULL);
Am I running into problems with the OS harddisk caches or something?
A quick glance over the source of fileconf.cpp didn't show any apparent problems; the dtor for wxFileConfig simply calls Flush() just like I do, so I suspect it has to do something with not closing the file handle leading to not writing the values.
TIA, Chris