caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Freeing allocated C-memory by GC (destructors)
@ 2008-01-23 16:46 Oliver Bandel
  2008-01-23 17:18 ` [Caml-list] " RABIH.ELCHAAR
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Bandel @ 2008-01-23 16:46 UTC (permalink / raw)
  To: caml-list

Hello,

after using some non-permanent allocating C-stuff
together with OCaml, I think about going one step further and
now have allocated memory from C represented as OCaml-variables
(in the concrete example I have married some of my C-stuff that
uses jpeglib to get information from picture-files, and
now think about representing complete picture-data as
OCaml-variables).

So, I want to have the possibility to have malloced/calloced
data avaliable in OCaml, and that the GC calls C-destructor-
functions (using free(3)) when the values are of no use anymore.


How to say the GC, which is the destructor-functions
for a variable, which has been created?

TIA,
   Oliver


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

end of thread, other threads:[~2008-01-23 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-23 16:46 Freeing allocated C-memory by GC (destructors) Oliver Bandel
2008-01-23 17:18 ` [Caml-list] " RABIH.ELCHAAR

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).