Browse thread
[Caml-list] Uncaught exceptions (or am I going crazy?)
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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. 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