[PATCH] wait for CompletionWorkerThread to exit before destroying it

Nick Shaforostoff shaforostoff at gmail.com
Sun Dec 21 20:06:51 UTC 2008


2008/12/21 David Nolden <zwabel at 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




More information about the KDevelop-devel mailing list