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

List:       kde-core-devel
Subject:    DO NOT delete QObjects, mmmkay?
From:       Andreas Hartmetz <ahartmetz () gmail ! com>
Date:       2007-11-08 20:19:01
Message-ID: 200711082119.01248.ahartmetz () gmail ! com
[Download RAW message or body]

Hi all,

All in all I have fixed three or four crashes in various KDE modules where 
QObjects were deleted while a signal/slot call involving that QObject was 
going on.
It's documented that you should only delete a QObject when you can rule out 
that this might happen. These bugs do not trigger every time and they are a 
great way to get buggy software in user's hands. Just say no to deleting 
QObjects except if you *really* know what you're doing. Not seeing the danger 
right away does not count as knowing what you're doing.
Keep in mind that deleting a QObject deletes its children, too.

Kthxbye,
Andreas
[prev in list] [next in list] [prev in thread] [next in thread] 

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