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

List:       kde-devel
Subject:    Re: deleting khtml object  results in crash
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2004-07-30 7:53:14
Message-ID: 200407300953.21985.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Friday 30 July 2004 09:02, Yarram Sunil Kumar wrote:
> Hi,
>    I am writing an application that uses KHTMLPart. I am deleting this
> object after catching the KHTMLPart::complete signal and it results into
> crash some times. What is the right time to delete KHTMLPart? i assume
> the complete signal is generated after loading the document completely
> and hence deleting it after the signal is generated.

The part might still execute code after emitting its signal.
Try part->deleteLater() instead fo delete part.

Cheers,
Kevin
-- 
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
www.mrunix.de - Unix/Linux programming forum
www.qtforum.org - Qt programming forum

[Attachment #5 (application/pgp-signature)]

>> 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