Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[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: Yaron M. Minsky <yminsky@C...>
Subject: Re: [Caml-list] Uncaught exceptions (or am I going crazy?)
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.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: