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
Exception is not caught by callback3_exn()
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-05-24 (08:06)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: Exception is not caught by callback3_exn()
> Using callback3_exn should catch any exceptions thrown in the code and 
> return. However, when the caml code throws an exception, my code doesn't 
> get control and the program terminates! I don't understand what's wrong 
> here -- could somebody please help?

Works fine here (in OCaml 3.00).  Make sure you use OCaml version 2.03
or later, since the initial implementation of callback*_exn in 2.02
was buggy.

If that doesn't explain your problem, please write
or use the bug-tracking system on our Web site and send us a complete
example reproducing the problem.

- Xavier Leroy