[Interest] QSettings stale lock file
Frank Hemer
frank at hemer.org
Wed Feb 25 17:23:33 CET 2015
On Wednesday 25 February 2015 07:25:41 Thiago Macieira wrote:
> On Wednesday 25 February 2015 11:30:57 Frank Hemer wrote:
> > On a windows7 professional, I'm using QSettings for the local user - the
> > settings data is located on a roaming profile.
> > Now I experience stale lock files xxx.ini.lock (zero bytes) that crash my
> > application.
> >
> > There is no other process running that could access the qsettings!
> >
> > Can anyone shed some light on conditions that could cause this?
>
> I think you're confusing cause with consequence. The lock files don't cause
> the crash; the crash is the cause for the files existing: the process
> stopped before the lock file could be removed.
well - I should have explained in more detail.
I was asking for the cause of the lock files to appear ... in many years I
have never seen these (well, prob. bec. they are created and removed in some
msecs). And looking at the code I expected to find some processID written
there, but the size was zero.
Right now it turned out that some user admin has changed the %appdata% env var
for the win roaming profile to point onto a file server. I guess this kind of
locking (QLockFile being used by QSettings) doesn't go very well with a samba?
share.
Btw, the crash actually is a freeze ... the users called it a crash.
Best regards
Frank
More information about the Interest
mailing list