wxFileConfig overwrite prevention strategy?
Vadim Zeitlin
vadim at wxwidgets.org
Mon Sep 3 14:02:00 PDT 2007
On Mon, 3 Sep 2007 12:16:37 -0700 Carl Godkin <cgodkin at gmail.com> wrote:
CG> I'm using wxConfigBase in wxGTK 2.8.0 to save a few configuration parameters
CG> from our package. Our package is made up of several programs, and I am
CG> apparently having a problem with wxFileConfig overwriting my
CG> configuration file when it is used by more than one application.
Yes, it doesn't support concurrent use of the same file by more than one
application. You should create a lock file (or use wxSingleInstanceChecker
which, in spite of its name, can be used by different programs and not only
by different instances of the same program) to prevent this from happening.
Or use different config files for different applications, of course.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list