From: Alain Frisch <alain@frisch.fr>
To: Romain Beauxis <toots@rastageeks.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Bigarrays and blocking_section..
Date: Wed, 26 May 2010 08:00:35 +0200 [thread overview]
Message-ID: <4BFCB903.50608@frisch.fr> (raw)
In-Reply-To: <201005251125.21755.toots@rastageeks.org>
On 5/25/2010 6:25 PM, Romain Beauxis wrote:
> My understanding is that after the line "frame_of_value(_rgb,&rgb);", the C
> object rgb only contains ints and a pointer to a block of memory allocated by
> malloc.
Did you allocated the C array yourself with malloc? (And then used
alloc_bigarray to wrap it as an OCaml bigarray.) Otherwise, if you
created the bigarray from OCaml code, you need to keep the bigarray live
with some GC root, or the memory for the array can be released.
Alain
next prev parent reply other threads:[~2010-05-26 6:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 16:25 Romain Beauxis
2010-05-25 19:29 ` [Caml-list] " Dmitry Bely
2010-05-25 20:11 ` Romain Beauxis
2010-05-26 1:16 ` Goswin von Brederlow
2010-05-26 6:00 ` Alain Frisch [this message]
2010-05-26 6:47 ` Goswin von Brederlow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BFCB903.50608@frisch.fr \
--to=alain@frisch.fr \
--cc=caml-list@yquem.inria.fr \
--cc=toots@rastageeks.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox