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
BA: external managed data freed at finalisation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-05-11 (14:42)
From: Florent Monnier <fmonnier@l...>
Subject: BA: external managed data freed at finalisation

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