Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [Caml-list] Uncaught exceptions (or am I going crazy?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: artboreb@n...
Subject: RE: [Caml-list] Uncaught exceptions (or am I going crazy?)
"Yaron M. Minsky" <yminsky@CS.Cornell.EDU> wrote:

>I'm getting some very weird behavior with respect to exception handling 
>in ocaml 3.06.  I'm probably missing something obvious, but here's my 
>situation.  I have a networking application which for some reason, 
>occasionally prints out the following message:
>
>Uncaught exception: Sys_error("Broken pipe")
>
>What's so strange about this is that as far as I can tell, there is no 
>place in my code where I actually print out such errors.  In particular, 
>the text "Uncaught exception" doesn't appear anywhere in my code, and I 
>don't see any printfs that could be the cause either.  And weirdly, this 
>only seems to come up with byte-code compiled code.
>
>So has anyone else seen something like this?
>
>y

It is a standard message derived from an unhandled exception in your
program. The text clearly displays "Uncaugth exception" because of a
broken pipe in this case. This is a normal behaivor for all unhandled
exceptions. See the section of 'exceptions' in the manual.

Regards

-- 
Arturo Borquez


__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners