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
callback question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] callback question
On Sat, Oct 07, 2006 at 05:08:48PM +0200, micha wrote:
> I'm storing an ocaml object in a c++ class (the class calls methods of
> the ocaml class). To do that I register the object as described for
> callback functions in the manual and use it with caml_named_value.
> It works perfect so it seems to be the right way. (?)
> But does the gc ever remove the object (since it is registered as a
> callback)?

You don't need to post questions twice.

Why don't you call Gc.compact () and see if the object gets freed?


Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology -
Internet Marketing and AdWords courses - - NEW!
Merjis blog - - NEW!