Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* BA: external managed data freed at finalisation
@ 2008-05-11 14:49 Florent Monnier
  2008-05-13 16:59 ` [Caml-list] " Florent Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Florent Monnier @ 2008-05-11 14:49 UTC (permalink / raw)
  To: caml-list

Hi,

When a bigarray is created from C, where its data part is allocated from a C 
function, I would like to know how to handle the finalisation of this ba ?

Will ocaml make the free() call on the data part when it will be finalised ?

Should one associates a finalisation function and how ?

bigarray_managed = BIGARRAY_EXTERNAL  // Data is not allocated by Caml

-- 
Thanks
Florent


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

end of thread, other threads:[~2008-05-13 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-11 14:49 BA: external managed data freed at finalisation Florent Monnier
2008-05-13 16:59 ` [Caml-list] " Florent Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox