Hello, I need to use threads in my gtk app. But, when I try to use g_thread_init(), all I got is SIGSEGV. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 5232)] 0x00000000 in ?? () (gdb) bt #0 0x00000000 in ?? () #1 0x403925c1 in g_mutex_init () from /usr/lib/libglib-2.0.so.0 #2 0x403c32d1 in g_thread_init () from /usr/lib/libgthread-1.2.so.0 #3 0x0804a364 in main (argc=1, argv=0xbffffab4) at bidi.c:245 bidi.c : 244 245 if (!g_thread_supported ()) g_thread_init(NULL); 246 gdk_threads_init(); 247 gtk_init(&argc, &argv); 248 If I omit g_thread_init my app works for a few seconds but then again gives a SIGSEGV. Am I using the inits right? If anyone intested I can put the code somewhere for you to examine... Regards -- Baris Metin http://metin.org
Attachment:
pgpcQPTgIY30C.pgp
Description: PGP signature