caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* memory handling with native code
@ 2006-08-24  8:59 Michael Wohlwend
  2006-08-24 15:46 ` [Caml-list] " skaller
  2006-08-24 16:47 ` Bardur Arantsson
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Wohlwend @ 2006-08-24  8:59 UTC (permalink / raw)
  To: caml-list

I'm trying to make an interface to a c++ lib of a friend of me, it's getting better, but questions about the memory management came up:

Say there is a c++ class widget, which I want to mirror on the ocaml side. So I implemented a c++ widget-adapter, which inherits from widget and forwards events to the ocaml widget class. This works fine, but how to delete the widget adapter? In the case the ocaml class gets destroyed by the gc the adapter on the native side is still there.
Should I wrap the pointer in a custom object?

cheers,
 Michael

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-24 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-24  8:59 memory handling with native code Michael Wohlwend
2006-08-24 15:46 ` [Caml-list] " skaller
2006-08-24 16:47 ` Bardur Arantsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).