Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-30 Thread BogDan
[..] > > IMHO deleting first the QML singletons then the rest of the Active > > objects > > > > is also wrong, because some of the active objects might need these > > singletons. > > > > I think the right way is to delete all the active objects first, then QML > > > > singletons, try delete a

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-29 Thread Simon Hausmann
On Monday, September 29, 2014 04:16:05 PM Harri Porten wrote: > On Mon, 29 Sep 2014, Simon Hausmann wrote: > > Yes, with emphasis on "until". Note that we are now talking about the "end > > of the application" situation, so our agreement ends right there ;-). We > > are talking about the time the Q

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-29 Thread Harri Porten
On Mon, 29 Sep 2014, Simon Hausmann wrote: > Yes, with emphasis on "until". Note that we are now talking about the "end of > the application" situation, so our agreement ends right there ;-). We are > talking about the time the QQmlEngine destructor is executed, which from a QML > engine perspecti

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-29 Thread Simon Hausmann
On Wednesday 24. September 2014 23.10.01 BogDan wrote: [...] > Hi, > > Do we all agree that the singletons, by definition, must be available to > any object at any time until the end of the application? Yes, with emphasis on "until". Note that we are now talking about the "end of the applicat

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-24 Thread BogDan
- Original Message - From: Simon Hausmann To: BogDan Cc: Chris Adams ; Qt Development Group Sent: Thursday, September 25, 2014 8:34 AM Subject: Re: SV: [Development] [QML] Singletons are deleted before the other objects On Monday, September 22, 2014 02:28:06 AM BogDan wrote

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-24 Thread Simon Hausmann
On Monday, September 22, 2014 02:28:06 AM BogDan wrote: > - Original Message - > From: Simon Hausmann > To: BogDan > Cc: Chris Adams ; Qt Development Group > Sent: Monday, September 22, 2014 11:56 AM > Subject: Re: SV: [Development] [QML] Singletons are deleted

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-22 Thread Jonathan Liu
On 19/09/2014 10:37 PM, BogDan wrote: > Hello folks, > >Singletons registered using qmlRegisterSingletonType, are deleted *before* > the other active objects. I consider it to be wrong because some of the active > objects may still need to access the singletons in their destructor ... > > IMHO

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-22 Thread BogDan
- Original Message - From: Simon Hausmann To: BogDan Cc: Chris Adams ; Qt Development Group Sent: Monday, September 22, 2014 11:56 AM Subject: Re: SV: [Development] [QML] Singletons are deleted before the other objects On Monday 22. September 2014 01.33.14 BogDan wrote: >

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-22 Thread Simon Hausmann
On Monday 22. September 2014 01.33.14 BogDan wrote: > On Monday 22. September 2014 01.19.17 BogDan wrote: > > Hi Simon, > > > > I took a look and I'm pretty sure I'm right ;-). BTW I'm using 5.4 > > branch (sha1 f9ee33f96), is a little bit old, but I bet nobody > > fixed it. The same problem is i

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-22 Thread BogDan
On Monday 22. September 2014 01.19.17 BogDan wrote: > Hi Simon, > > I took a look and I'm pretty sure I'm right ;-). BTW I'm using 5.4 > branch (sha1 f9ee33f96), is a little bit old, but I bet nobody > fixed it. The same problem is in previous releases. > > So, the singletons are deleted in QQ

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-22 Thread Simon Hausmann
On Monday 22. September 2014 01.19.17 BogDan wrote: > Hi Simon, > > I took a look and I'm pretty sure I'm right ;-). BTW I'm using 5.4 > branch (sha1 f9ee33f96), is a little bit old, but I bet nobody > fixed it. The same problem is in previous releases. > > So, the singletons are deleted in QQml

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-22 Thread BogDan
BogDan Cc: Qt Development Group Sent: Monday, September 22, 2014 9:33 AM Subject: SV: [Development] [QML] Singletons are deleted before the other objects Hi, In gener‎al I agree with Chris. However I'm a little puzzled that this is happening. If you take a look at the QQmlEngine de

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-21 Thread Hausmann Simon
Simon Fra: Chris Adams Sendt: 05:45 mandag 22. september 2014 Til: BogDan Kopi: Qt Development Group Emne: Re: [Development] [QML] Singletons are deleted before the other objects Hi, On Fri, Sep 19, 2014 at 10:37 PM, BogDan mailto:bog_dan...@yahoo.com>> wrote: Hello folks, Singletons

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-21 Thread Knoll Lars
I tend to agree. Sounds like a bug to me. Cheers, Lars On 19/09/14 14:37, "BogDan" wrote: >Hello folks, > > Singletons registered using qmlRegisterSingletonType, are deleted >*before* >the other active objects. I consider it to be wrong because some of the >active >objects may still need to ac

Re: [Development] [QML] Singletons are deleted before the other objects

2014-09-21 Thread Chris Adams
Hi, On Fri, Sep 19, 2014 at 10:37 PM, BogDan wrote: > Hello folks, > > Singletons registered using qmlRegisterSingletonType, are deleted > *before* > the other active objects. I consider it to be wrong because some of the > active > objects may still need to access the singletons in their dest

[Development] [QML] Singletons are deleted before the other objects

2014-09-19 Thread BogDan
Hello folks, Singletons registered using qmlRegisterSingletonType, are deleted *before* the other active objects. I consider it to be wrong because some of the active objects may still need to access the singletons in their destructor ... IMHO singletons should be the very last objects deleted