>If I compile an app with this two lines:
>
>GtkTreeViewColumn *ca;
>GtkTreeViewColumn *cb;
>
>When I run the app, I get a Segmentation Fault. *cb isn't used on the
>code.
>
>If I compile the app after comenting:
>
>GtkTreeViewColumn *ca;
>/*GtkTreeViewColumn *cb;*/
>
>...it runs nicely.
>
>This is wierd.

it may or may not be wierd, but its the classic fingerprint of a
memory overrun bug in your code. the extra declaration of "cb" changes
the memory layout of other variables in a way that causes the memory
overrun to have a visible effect.

there are not too many fast ways to debug this. electric fence is not
bad, dmalloc can help sometimes, purify is good but costs money for
the real thing and is pretty big. i generally find that deep
meditation while reading the code and a few printfs most helpful.

--p
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to