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

List:       kde-core-devel
Subject:    Re: kdeinit problem
From:       Waldo Bastian <bastian () kde ! org>
Date:       2001-03-07 23:25:43
[Download RAW message or body]

On Wednesday 07 March 2001 09:15, you wrote:
> Hi Waldo
>
> I have a problem with kicker which only shows up when it is started via
> kdeinit. To reproduce add a child panel to kicker, add some applet to the
> child panel and restart kicker with kdeinit. The result is a strange crash.
>
> Any ideas?

Ok. There is libkicker_internal which is a static library. This defines 
PGlobal::pluginmgr. This static library is included by other libraries. E.g. 
a scan for PGlobal shows that the following libraries define PGlobal:
/ext/kde2.0/lib/libquicklauncher.so[.1.0.0]
/ext/kde2.0/lib/libchildpanelextension.so[.1.0.0]
/ext/kde2.0/lib/kicker.so

Since the link order is a bit different when you use kdeinit, you end up with 
2 different instances of PGlobal::pluginmgr, one which is initialized and one 
which is 0, this gives problems.

The correct solution is to make libkicker_internal a shared library so that 
the same instance will be shared among all modules.

Cheers,
Waldo
-- 
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com

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

Configure | About | News | Add a list | Sponsored by KoreLogic