Version française
Home     About     Download     Resources     Contact us    
Browse thread
Wrapping a callback to OCaml code from C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] Wrapping a callback to OCaml code from C

Le 24 juin 05 à 12:40, Richard Jones a écrit :

> On Thu, Jun 23, 2005 at 10:47:33PM +0100, Richard Jones wrote:
> [...]
>
> There was quite a delay in this posting appearing.  In the meantime I
> think I've fixed the problem by adding CAMLparam0 .. CAMLlocal3 ..
> CAMLreturn0 around the callback wrapper function.

I would like to understand why this is needed. Did you allocate  
something with the gc in your Val_obj functions ?

Daniel