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

List:       koffice-devel
Subject:    Re: strange bug with QList
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-06-22 10:48:29
[Download RAW message or body]

Hey, I found the reason for the KIllu crashes.

GDocument::initialize () creates a page and stores it as the "active page".
GDocument::readFromXml() deletes all the existing pages and creates
a new one, but it doesn't change active_page !

So active_page is a dangling pointer, and anything that calls activePage()->blah()
later is bound to crash.
That's easily fixed by active_page=page in readFromXml,
but it still crashes.... :( I'll keep investigating.

Please confirm that this change is correct.

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.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