Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=cs9nGT9aQv5AUGWDGzF36c1JXh/jZmnREGuNKranKqA=; b=t0vlFGQVDyqIvZbRwp2v+OBftvrVnRdptHRDxNlCznKA/+P5+/zKIzg+gUCt7E+fAd vpXcrIUff4NTKrkyF/JEm3E7swXexn5E2KyJPEi5EDd7yaem5zTqH8Mi3BIF0qUXp+7v 6YWkbg4yHhdq0li6i5T4HxWE3GsM1/6XUbd4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=J6WJ/DU2TBJhmB0M+1I2pb2q9DJ8cFxwrZUcSXTyxSVBAxuNxEmHXv8ISp872gIZ2q 5BmH2r20479I8XTl7IK23gpuNVYRpPZO2ccTeK9dolqv6tQLdXy7lCJ+PAkl92hdLDKX LvitgCOGG08E7MbaPhF9COP0M0T6BI9eAHYnM= Message-ID: Date: Sun, 3 Aug 2008 23:38:07 +0200 From: "Guillaume Brunerie" To: "MONATE Benjamin 205998" Subject: Re: RE : [Lablgtk] Segfault when removing or setting an invalid GTree.iter MIME-Version: 1.0 Cc: lablgtk at yquem.inria.fr Mime-version: 1.0 Content-Type: multipart/mixed; boundary="===============1939311923==" Content-Length: 2868 --===============1939311923== Content-Type: multipart/alternative; boundary="----=_Part_19463_31788798.1217799487672" ------=_Part_19463_31788798.1217799487672 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > 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 > > ------=_Part_19463_31788798.1217799487672 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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 <Benjamin.MONATE@cea.fr>
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


------=_Part_19463_31788798.1217799487672-- --===============1939311923== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk --===============1939311923==--