Version française
Home     About     Download     Resources     Contact us    
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?

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Internet Marketing and AdWords courses - http://merjis.com/courses - NEW!
Merjis blog - http://blog.merjis.com - NEW!