[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KProgressbar and intensive calculations
From:       Guillaume Laurent <glaurent () telegraph-road ! org>
Date:       2006-02-20 9:56:10
Message-ID: 43F9923A.1060801 () telegraph-road ! org
[Download RAW message or body]

Dirk Mueller wrote:
>
> I'd say with extreme caution. The big problem is that QTimer fires in 
> processEvents, and this can cause all unpredictable nasty things to happen, 
> including the objects you currently work on to be deleted or other reentrancy 
> issues to be exposed. You can easily end up in a situation where not even 
> unwinding the stack (aka exiting your processing job) can be done without 
> crashing. Thats certainly very bad. 
>
> thats why I would unconditionally recommend the way to do things Andras 
> suggested (or rather just switch entirely to a Threadweaver/QThread based job 
> queue). 
>   
I still fail to see how all these bad things won't happen with the 
solution you suggest. In all cases, the program has to maintain two 
separate flows of execution, and that's a hard thing to do correctly.

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic