Re: RE : Segfault when removing or setting an invalid GTree.iter

"Guillaume Brunerie" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
Hi,

But shouldn't LablGTK raise an exception when a GTree.iter invalid is going
to be used?
If I add the line :
Glib.Message.set_always_fatal [ `CRITICAL; `ERROR; `FLAG_FATAL;
`FLAG_RECURSION];;
the program stops, but I can't catch nothing with a "try ... with ..."
constructor.


2008/8/3 MONATE Benjamin 205998 <[email protected]>

> Hi Guillaume,
>
> You program is breaking Gtk invariants hence the "Gtk-CRITICAL" message:
> GTree.iter cannot be used if Gtk has decided they are invalid.
> Gtk is by defaul a little sloppy about ctitical errors. It just displays
> the messsages and goes on even if an internal later segfault may occur.
> If you want your program to stop you may add to the start of bug.ml:
> Glib.Message.set_always_fatal [ `CRITICAL; `ERROR; `FLAG_FATAL;
> `FLAG_RECURSION];;
>
>
> Benjamin Monate
>
>

_______________________________________________
Lablgtk mailing list
[email protected]
http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.