Re: Is there a way to make this work?



OK:
i created a thread wich get, parses the xml and updates the clist. But
it chrases, resulting in a zombie.

create the thread to parse the xml but instead of updateing
the clist do a g_io_channel_write* and add a watch on your channel
in your main thread. in your callback in the main thread:
update the clist.

      But you could do a number of things. just remember
that only one thread is allowed to update the GUI.

        -Tristan

PS:
it might be prudent to use g_thread_create/g_thread_init
seeing as it offers alot of usefull stuff like
g_mutex_* g_condition_* etc...



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