Re: g_thread_init core dumps called before gtk_init



thomas joseph wrote:

Hi,

I have a gtk application, which calls g_thread_init.
It gives segmentation fault with the call and when I
comment it runs normally.

I am attaching the code below, Could you check what
is
wrong with this code. I have seen in the thread it
fails if you call g_thread_ini after gtk_init but not
this case.

Your prog has no gdk_threads_init() call. Just put it after
g_thread_init( NULL ) call.

Olexiy






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]