Re: question about GtkTreeIter



On 7/28/07, rick <rick_murphy sohu com> wrote:
> Hi
> first, let's compare two pieces of codes:
>
> No.1
> {
> GtkTreeIter* iter;
>     gtk_tree_store_append(store, iter, parent);
>     gtk_tree_store_set(store, iter, COLUMN_NAME, node->name,
> COLUMN_TYPE, node->content, -1);
> }

iter is pointing to garbage, it's normal that the program crashes when
it tries to use that memory. This list is for the development of GTK+
itself, for questions about development with GTK+ please use
http://mail.gnome.org/mailman/listinfo/gtk-list

Xan



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