Should I use Gtk+ or even GUI?



Hi, Recently I use GTK+2.1 in Red hat 8.0, and my multi-thread program like these: GtkWidget *Clist_CommStatus; GtkWidget *ScroWind_CommStatus; GtkWidget *Window_Commstatus; if(GTK_IS_WIDGET(Window_CommStatus) && GTK_IS_WIDGET(Clist_CommStatus)) { NROW ++; gdk_threads_enter(); gtk_clist_append(GTK_CLIST(Clist_CommStatus), &pText); gdk_flush(); gdk_threads_leave(); if(NROW >= 2000) { gdk_threads_enter(); gtk_clist_clear(GTK_CLIST(Clist_CommStatus)); gdk_flush(); gdk_threads_leave(); NROW -= 2000; } } I have tried many times to get the program thread-safe. Unfortunately, the error "Xlib: unexpected async reply" still exists.So I feel the list control have fault . Is it true?
                                                                    Rill
2004/02/15

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com



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