[crash] KEditor::Document

Simon Hausmann hausmann at kde.org
Mon Jul 30 13:43:42 UTC 2001


On Mon, Jul 30, 2001 at 04:28:59PM +0300, Eray Ozkural wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I changed lib/interfaces/keditor because there seemed to be a build problem:
> 
> After I cvs up'd the build system seemed to prefer separate compilation of 
> cpp and moc's so I changed the header files which didn't reflect that. (The 
> build is still a bit odd, duplicate files are being generated) I'm attaching 
> a summary of (a simulation of) what happened before I removed the includes. 
> The fix removes that build failure.
> 
> Unfortunately, there is a crash a crash right now at cursor_iface.cpp when 
> using  KEditor::CursorDocumentIface::interface
> I'm a bit sleepy at the time so I may have missed a point. Please comment, 
> but it doesn't seem that my change has caused it;  code borks at
>   return 
> static_cast<KEditor::CursorDocumentIface*>(doc->queryInterface("KEditor::CursorDocumentIface"));
> 
> which should be type safe :) I didn't see anything that requires suspicion, 

Looking at the backtrace of your other mail it appears that the 'doc' pointer
is a null pointer, which should be checked for before dereferencing for the
queryInterface call :)

Bye,
 Simon

-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list