English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Uncaught Unix_error.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-06-18 (13:17)
From: Stéphane_Glondu <steph@g...>
Subject: Re: [Caml-list] Uncaught Unix_error.
Romain Beauxis a écrit :
> We have had a strange bug report on our code. Somehow, an Unix.Unix_error 
> exception was not caught while it ought to be. See:
>   http://savonet.rastageeks.org/ticket/269
> [...]
> We believe that the issue is raised because the module that uses Unix.read is 
> compiled with one of unix or threads and the application using that module 
> with the other one.

Such errors can also happen if you link the (same) Unix module twice:
the exceptions raised by the first instance are not catchable by
anything linked after the second instance. This can happen quite easily,
especially if you use Dynlink. In general, having two modules with the
same name in one application is a bad idea.