From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA21169; Wed, 24 Oct 2001 16:37:09 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA21125 for ; Wed, 24 Oct 2001 16:37:08 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f9OEb5j29385; Wed, 24 Oct 2001 16:37:05 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA21085; Wed, 24 Oct 2001 16:37:05 +0200 (MET DST) Date: Wed, 24 Oct 2001 16:37:05 +0200 From: Xavier Leroy To: Pixel Cc: caml-list@inria.fr Subject: Re: [Caml-list] exception messages pbs Message-ID: <20011024163705.B20823@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from pixel@mandrakesoft.com on Tue, Oct 16, 2001 at 02:43:27PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > - long Failure exceptions get truncated, eg: Right. The string representation of the exception is computed in a fixed-size buffer. You can easily change the size of this buffer (declaration of "struct stringbuf" in byterun/printexc.c). Ideally, the buffer would grow as needed... > - when an exception occurs, the file descriptors are not flushed. To > have them flushed, I use : > > try ... with e -> flush stdout ; raise e > > which works nicely, except that back-in-time debugging is harder (you have to > go back the various catching code). Any better solution? That's a known open issue. The C code that traps and display the exception could call back into Caml to perform the flushing (and more generally all "at_exit" processing), but some care must be taken if some of this processing raises an exception itself :-) - Xavier Leroy ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr