[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: dynamic_cast problem (was: kde-devel:Re: Dirtree sidebartree module crashes [Was: kfmclient open
From: Simon Hausmann <hausmann () kde ! org>
Date: 2002-02-27 21:16:13
[Download RAW message or body]
On Wed, Feb 27, 2002 at 08:41:55PM +0000, jowenn@bigfoot.com wrote:
> Hi
>
> Pavel Troller detected a crash problem in my
> sidebar for konqueror with gcc 3.0.4.
>
> I don't have this compiler, but it seams to be a
> problem with dynamic_cast in a dlopened library
> ^H^H^H^H^H^H^H plugin. It happens for instance in
> konqueror/sidebar/trees/dirtree_module/dirtreemodule.cpp
> in line 35.
>
> Does someone know of a quick and not that dirty
> fix for this problem ? Do I have to add special
> link parameters to get it working ?
>
> Konqueror's sidebar part opens the
> konqsidebar_tree plugin, which loades again the
> dirtree_module plugin. The dirtree_module does a
> dynamic cast on an object in the sidebar part.
See http://lists.kde.org/?l=kde-core-devel&m=100746955931520&w=2
and related posts in the thread. There is no way for us to get rtti
working in that case, unless we use RTLD_GLOBAL (which is fatal for
us) .
Use QObject::inherits if you can.
Simon
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic