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

List:       kde-devel
Subject:    KHTMLPart & KLibLoader
From:       Ellis Whitehead <kde () ellisw ! net>
Date:       2001-09-28 4:57:49
[Download RAW message or body]

Hi Guys,

Should the following code work (CVS HEAD)?

	KLibFactory* pFactory = KLibLoader::self()->factory( "libkhtml" );
	if( pFactory ) {
		QObject* pObj = pFactory->create( 0, 0, "KParts::ReadOnlyPart" );

It's crashing on the call to KLibFactory::createObject() in 
KLibFactory::create() in klibloader.cpp...

[New Thread 1024 (LWP 1931)]
0x41227529 in wait4 () from /lib/libc.so.6
#0  0x41227529 in wait4 () from /lib/libc.so.6
#1  0x4129e0b8 in __check_rhosts_file () from /lib/libc.so.6
#2  0x40041033 in waitpid () from /lib/libpthread.so.0
#3  0x409307db in KCrash::defaultCrashHandler (signal=11)
    at /ks/kdelibs/kdecore/kcrash.cpp:203
#4  0x4003ec84 in pthread_sighandler () from /lib/libpthread.so.0
#5  0x411b07b8 in sigaction () from /lib/libc.so.6
#6  0x4093fdcc in KLibFactory::create (this=0x80cbbd0, parent=0x0, name=0x0, 
    classname=0x804a81b "KParts::ReadOnlyPart", args=@0xbffff874)
    at /ks/kdelibs/kdecore/klibloader.cpp:81
#7  0x804a1f9 in test2 (argc=1, argv=0xbffff9d4) at main.cpp:76
#8  0x804a5d4 in main (argc=1, argv=0xbffff9d4) at main.cpp:98
#9  0x411a064f in __libc_start_main () from /lib/libc.so.6

Thanks,
Ellis
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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