[Fwd: Thread based applications...]
- From: Vandoorselaere Yoann <yoann roco-productions com>
- To: gtk-list redhat com
- Subject: [Fwd: Thread based applications...]
- Date: Mon, 30 Nov 1998 12:09:42 +0100
--
-- Yoann
It is well known that M$ products don't call free() after a malloc()
The unix community wishes them "good luck" for their future development...
- From: Vandoorselaere Yoann <yoann security-addict org>
- To: gtk-list redhat com
- Subject: Thread based applications...
- Date: Mon, 30 Nov 1998 12:07:47 +0100
Re elo :)
Have a look to this problem :
in fonction result_win :
[...]
pthread_mutex_lock(&mutex);
tree = gtk_tree_new();
gtk_container_add(GTK_CONTAINER(scrolled_win), tree);
gtk_widget_show(tree);
pthread_mutex_unlock(&mutex);
[...]
in fonction print_info : ( this one is in a thread )
[...]
printf("DEBUG : Recv %s\n", msg);
pthread_mutex_lock(&mutex);
tree_item = gtk_tree_item_new_with_label("debug garbage");
gtk_tree_append(GTK_TREE(tree), tree_item);
gtk_widget_show(tree_item);
pthread_mutex_unlock(&mutex);
[...]
This is the 2 only fonction where i use the GtkWidget tree...
And, at run time :
DEBUG: recv xxxxxx
Xlib: unexpected async reply (sequence 0x835)!
Does anyone have an idea... a solution ?
Thank you
bye
--
-- Yoann
It is well known that M$ products don't call free() after a malloc()
The unix community wishes them "good luck" for their future development...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]