caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Yaron M. Minsky" <yminsky@CS.Cornell.EDU>
To: Alessandro Baretta <alex@baretta.com>
Cc: Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Uncaught exceptions (or am I going crazy?)
Date: Wed, 02 Oct 2002 11:57:27 -0400	[thread overview]
Message-ID: <3D9B1767.8030902@cs.cornell.edu> (raw)
In-Reply-To: <3D9B18FA.80809@baretta.com>

Alessandro Baretta wrote:
> 
> 
> Yaron M. Minsky wrote:
> 
>> All the explanations given so far make sense except for one thing:  
>> they all suggest that the program should terminate.  But my program 
>> doesn't terminate, it just prints out the "Uncaught exception" string 
>> and keeps on executing.  I am not to my knowledge making any use of 
>> threads, so that odesn't seem like it should be the right explanation 
>> either.
>>
>> So, any more thoughts?
>>
>> y
> 
> 
> I noticed this. You are probably linking to a library which raises and 
> then catches the exception, printing out the error message. Oftentimes, 
> GUI libraries have this feature. This might explain why your program 
> does not terminate when the exception is raised.
> 
> Can you send in a test case that reproduces this behavior, for reference?
> 
> Alex

Unfortunately, I don't have a nice, small test case as of yet.  I'll 
send one in when I get it.  As for libraries, I'm using numerix, 
cryptokit, bigarray, unix and str.  I think that's it except for my own 
code.  It doesn't seem like any of those should be catching Sys_errors.

y

-------------------
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


  reply	other threads:[~2002-10-02 15:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-02 14:34 Yaron M. Minsky
2002-10-02 14:59 ` Didier Le Botlan
2002-10-02 15:01 ` Maxence Guesdon
2002-10-02 15:06 ` Michael Hicks
     [not found] ` <3D9B0978.E4A5D96@beaune.inria.fr>
2002-10-02 15:38   ` Yaron M. Minsky
2002-10-02 16:04     ` Alessandro Baretta
2002-10-02 15:57       ` Yaron M. Minsky [this message]
     [not found]         ` <15771.6363.899204.33252@paille.inria.fr>
     [not found]           ` <3D9B198D.7020605@cs.cornell.edu>
     [not found]             ` <15771.6812.266404.848081@paille.inria.fr>
2002-10-02 16:19               ` Yaron M. Minsky
2002-10-03  0:46 Arturo Borquez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D9B1767.8030902@cs.cornell.edu \
    --to=yminsky@cs.cornell.edu \
    --cc=alex@baretta.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).