Re: [Interest] Advice on random program finish crash

2015-01-07 Thread Michael Sué
t and explicitly call it by yourself. - Michael. From: Nuno Santos [mailto:nunosan...@imaginando.pt] Sent: Wednesday, January 07, 2015 1:37 PM To: Michael Sué Cc: igor.mironc...@gmail.com; interest@qt-project.org Subject: Re: [Interest] Advice on random program finish crash Hi, I’m not really

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread alexander golks
; > With this approach, the object will no longer be deleted at program exit, > > right? So there can be no crash on deletion anymore. > > > > - Michael. > > > > From: interest-bounces+sue=sf.mpg...@qt-project.org > > [mailto:interest-bounces+sue=sf.mpg...@qt-proj

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread Nuno Santos
> From: interest-bounces+sue=sf.mpg...@qt-project.org > [mailto:interest-bounces+sue=sf.mpg...@qt-project.org] On Behalf Of Nuno > Santos > Sent: Wednesday, January 07, 2015 1:16 PM > To: Igor Mironchik > Cc: Interests Qt > Subject: Re: [Interest] Advice on random program fin

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread Michael Sué
, January 07, 2015 1:16 PM To: Igor Mironchik Cc: Interests Qt Subject: Re: [Interest] Advice on random program finish crash Hi, I have made the following modification and it seems not crashing anymore: static Manager* gManager = 0; Manager* Manager::sharedManager() { QMutexLocker

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread Bo Thorsen
Den 07-01-2015 kl. 11:30 skrev Nuno Santos: > Hi Igor, > > Ops… You are right, it is not static. > > I have tried your suggestion but now it crashes everytime I close the > app and I can’t even get a stack trace like before. If I run it on > debug, it points me to assembler code. Not anything I can

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread Nuno Santos
Hi, I have made the following modification and it seems not crashing anymore: static Manager* gManager = 0; Manager* Manager::sharedManager() { QMutexLocker lock(&managerMutex); if (!gManager) { gManager = new Manager(); } return gManager

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread Nuno Santos
Hi Igor, Ops… You are right, it is not static. I have tried your suggestion but now it crashes everytime I close the app and I can’t even get a stack trace like before. If I run it on debug, it points me to assembler code. Not anything I can really point to. Regards, Nuno > > On 07 Jan 2015

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread Nuno Santos
Yes, int main(int argc, char **argv) { QGuiApplication app(argc, argv); ... return app.exec(); } > On 07 Jan 2015, at 09:54, Igor Mironchik wrote: > > Hi, I have one question: is QApplication static too? > > On Wed, 07 Jan 2015 12:32:21 +0300, Nuno Santos > wrote: > >> Hi, >

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread Igor Mironchik
Hi, I have one question: is QApplication static too? On Wed, 07 Jan 2015 12:32:21 +0300, Nuno Santos wrote: > Hi, > > I’m having a problem with a random crash that not always happens. I > would like to have your advice on how to find the origin of it. > > This crash always happens on program

Re: [Interest] Advice on random program finish crash

2015-01-07 Thread alexander golks
Am Wed, 7 Jan 2015 09:32:21 + schrieb Nuno Santos : > Hi, > > I’m having a problem with a random crash that not always happens. I would > like to have your advice on how to find the origin of it. > > This crash always happens on program exit and the stack trace is the > following: > > Thr

[Interest] Advice on random program finish crash

2015-01-07 Thread Nuno Santos
Hi, I’m having a problem with a random crash that not always happens. I would like to have your advice on how to find the origin of it. This crash always happens on program exit and the stack trace is the following: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.qt-project.QtC