From kde-core-devel Wed Feb 27 21:16:13 2002 From: Simon Hausmann Date: Wed, 27 Feb 2002 21:16:13 +0000 To: kde-core-devel Subject: Re: dynamic_cast problem (was: kde-devel:Re: Dirtree sidebartree module crashes [Was: kfmclient open X-MARC-Message: https://marc.info/?l=kde-core-devel&m=101484477515710 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