From kde-devel Sun Jul 14 10:15:13 2002 From: fenix Date: Sun, 14 Jul 2002 10:15:13 +0000 To: kde-devel Subject: Re: kcmodule segfaulting problem X-MARC-Message: https://marc.info/?l=kde-devel&m=102664171306376 Le dim 14/07/2002 =E0 05:56, David Faure a =E9crit : > -----BEGIN PGP SIGNED MESSAGE----- > > >=20 > > > class KlineakControl: public KCModule > > > >=20 > > Hi, > >=20 > > Have you: > >=20 > > extern "C" { > > void init_klineakcontrol() > > { > > //init stuff here =09 > > } > > } >=20 > You don't need the above if you use K_EXPORT_COMPONENT_FACTORY. yes, you are right ... i missing 'or' ;( > > typedef KGenericFactory KlineakControlFactory; > > K_EXPORT_COMPONENT_FACTORY( kcm_klineakcontrol, KlineakControlFactory( > > "kcmklineakcontrol" ) ); >=20 > Looks ok. FeniX =20 > - --=20 > David FAURE, david@mandrakesoft.com, faure@kde.org > http://people.mandrakesoft.com/~david/ > Contributing to: http://www.konqueror.org/, http://www.koffice.org/ > KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<