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

List:       koffice-devel
Subject:    Re: Use of processEvents()
From:       David Faure <faure () kde ! org>
Date:       2006-02-09 17:04:26
Message-ID: 200602091804.27166.faure () kde ! org
[Download RAW message or body]

On Thursday 09 February 2006 10:04, Jaroslaw Staniek wrote:
> Hmm, in Kexi I am calling processEvents() from within a loop on data loading 
> in "data table view" destruction (both actions can a few seconds or more) to 
> make GUI more responsive. Both operations are isolated and not GUI-related, 
> just loading/destroying some data. Any risks?

Yes, if you don't use a modal progress dialog while doing that, then the user
could close the window, and assuming it is deleted and not just leaked,
your code will be running inside a deleted object. Boom.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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