Re: [gtk-list] Re: Crashing X



On Mon, 4 May 1998, Shevek wrote:

> Just something like:
> 
>     83      tempnode=BuildEventData->titlelist->next;
>     84      while(BuildEventData->titlelist != tempnode) {
>     85          listitem = gtk_list_item_new_with_label (tempnode->name);
>     86          gtk_container_add (GTK_CONTAINER (BuildEventData->list),
>     87                          listitem);
>     88          gtk_signal_connect_object(GTK_OBJECT (listitem), "select",
>     89                          GTK_SIGNAL_FUNC (of_select_item),
>     90                          (gpointer) tempnode);
>     91          gtk_widget_show(listitem);
>     92          // tempnode=tempnode->next;
>     93      }
> 
> With the tempnode=tempnode->next commented out it crashes X.
Seems to me like a resource overusage problem. (Without the line, this
becomes an infinite loop allocating new X windows probably etc.)

Andreas




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