Re: [Interest] QLockFile

2015-02-23 Thread Graham Labdon
André Somers Sent: 23 February 2015 11:12 To: interest@qt-project.org Subject: Re: [Interest] QLockFile Graham Labdon schreef op 23-2-2015 om 12:06: > Hi > > It seems that I needed to do a removeStaleLockFile when I had previously > stopped my program via the debugger. > > I can

Re: [Interest] QLockFile

2015-02-23 Thread André Somers
I understand it. André > > Thanks > > -Original Message- > From: interest-bounces+graham.labdon=avalonsciences@qt-project.org > [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On > Behalf Of André Somers > Sent: 23 February 2015 10:44

Re: [Interest] QLockFile

2015-02-23 Thread Graham Labdon
February 2015 10:44 To: interest@qt-project.org Subject: Re: [Interest] QLockFile Graham Labdon schreef op 23-2-2015 om 11:36: > Hi > > QString path = "C:\jobs\Test1\job.xcfg"; QFile file(path); > > bool res = file.open(QIODevice::WriteOnly); > > here res is true But, th

Re: [Interest] QLockFile

2015-02-23 Thread André Somers
es@qt-project.org > [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On > Behalf Of André Somers > Sent: 23 February 2015 10:15 > To: interest@qt-project.org > Subject: Re: [Interest] QLockFile > > Graham Labdon schreef op 23-2-2015 om 11:10: >

Re: [Interest] QLockFile

2015-02-23 Thread André Somers
from code using QFile and opening it write only? What happens if you do that? André > > -Original Message- > From: André Somers [mailto:an...@familiesomers.nl] > Sent: 23 February 2015 10:07 > To: Graham Labdon > Subject: Re: [Interest] QLockFile > > Graham Labd

Re: [Interest] QLockFile

2015-02-23 Thread André Somers
Graham Labdon schreef op 23-2-2015 om 10:48: > Hi > > I am trying to use QLockFile in a function that receives a file path as a > QString. > > When I pass the string directly to the constructor of QLockFile and the call > tryLock it always fails. > > However, if I hard code the string the lock su

[Interest] QLockFile

2015-02-23 Thread Graham Labdon
Hi I am trying to use QLockFile in a function that receives a file path as a QString. When I pass the string directly to the constructor of QLockFile and the call tryLock it always fails. However, if I hard code the string the lock succeeds (although I get compiler warnings about unknown esca