QClipboard causes unexpected recursion leading to crashes

Waldo Bastian bastian at kde.org
Mon Jan 12 17:39:15 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

QClipboard triggers the eventloop which causes unexpected recursion leading to 
crashes such as http://bugs.kde.org/show_bug.cgi?id=70430 

Although an attempt was made to stop the recursion somewhat by excluding 
several events (see below), this isn't enough.

qclipboard_x11.cpp:479
       qApp->eventLoop()->processEvents( QEventLoop::ExcludeUserInput |
                                          QEventLoop::ExcludeSocketNotifiers |
                                          QEventLoop::WaitForMore | 0x08 );

In particular, posted events such as DeferredDelete are still being processed 
due to processEvents() calling QApplication::sendPostedEvents()

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAAtvDN4pvrENfboIRAosdAJ4kv3uicK6lMudO9VPi/JNG7ULWCwCbBsy5
s/RpXshGV48nsRhDOVvSdbc=
=7UKR
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list