On 8/8/06, Tristan Van Berkom <[EMAIL PROTECTED]> wrote:
> Román Gorojovsky wrote:
> [...]
> > IIRC I did
> >
> >    GtkWidget *label;
> >    struct my_data *data;
> >
> >    /* Initialize label */
> >
> >    data->l = label;
> >
> > and got a Segmentation fault there.  But I'll try again I guess....
>
> my_data is a wild pointer here, you must either allocate it on the heap
> and ensure that it is freed at the appropriate time, or declare it on
> the stack globally or staticly.
>

As I said before, It's a problem with my C, not my gtk.  A quite
embarrassing mistake, sorry for wasting your time.

Thanks a lot again.

> Cheers,
>                     -Tristan
>


-- 
Román
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to