[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: [PATCH] wait for CompletionWorkerThread to exit before destroying
From: "Nick Shaforostoff" <shaforostoff () gmail ! com>
Date: 2008-12-21 20:06:51
Message-ID: 758e8e2d0812211206o19a64b13y6d51e74f8dbf4344 () mail ! gmail ! com
[Download RAW message or body]
2008/12/21 David Nolden <zwabel@googlemail.com>:
> Am Sonntag, 21. Dezember 2008 11:49:17 schrieb Peter Oberndorfer:
>> otherwise we get "QThread: Destroyed while thread is still running"
>> warnings and crashes.
>> ---
>> I think QThread::quit/exit only tells the event loop to exit
>> but it does not wait until the thread terminates.
>>
>> Attached is a trace of a crash that is probably caused by this.
>
> Applied, thanks
why not just use QObject::deleteLater() ?
http://doc.trolltech.com/4.4/qobject.html#deleteLater
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic