ioslave terminating mechanism
aleXXX
alexander.neundorf at gmx.net
Wed Apr 17 23:05:57 BST 2002
On Wednesday 17 April 2002 17:11, Malte Starostik wrote:
> Hi,
>
> kio_thumbnail sometimes keeps hanging around after receiving SIGTERM and
> has to be KILLed. This happens when a HTML preview is being generated while
> the slave is killed, e.g. when you go to somewhere else in konq during
> preview generation.
> I've seen different bt's, mostly:
> * KHTMLPart's dtor result in XFlush() due to the (actually already hidden
> widget being hidden) => ~90% CPU, most of it system
The following code ?
HTMLCreator::~HTMLCreator()
{
delete m_html;
}
bool HTMLCreator::create(const QString &path, int width, int height, QImage
&img)
{
if (!m_html)
{
m_html = new KHTMLPart;
You create a qobject with parent 0 and delete it in the dtor of the class
which owns the pointer. I did the same and always had a crash in the dtor
when I tried to hide() (or was it delete ?) the widgets when exiting the app
normally (i.e. not due to signals). So deleting or accessing 0-parent widgets
in the dtor of the owning class when exiting the app seems to be a bad idea,
not only in ioslaves.
Bye
Alex
More information about the kde-core-devel
mailing list