From: Goswin von Brederlow <goswin-v-b@web.de>
To: Alain Frisch <alain@frisch.fr>
Cc: Romain Beauxis <toots@rastageeks.org>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Bigarrays and blocking_section..
Date: Wed, 26 May 2010 08:47:09 +0200 [thread overview]
Message-ID: <87typvf9ci.fsf@frosties.localdomain> (raw)
In-Reply-To: <4BFCB903.50608@frisch.fr> (Alain Frisch's message of "Wed, 26 May 2010 08:00:35 +0200")
Alain Frisch <alain@frisch.fr> writes:
> 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
He did declare it as local varaible with the proper makro I believe.
MfG
Goswin
prev parent reply other threads:[~2010-05-26 6:47 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
2010-05-26 6:47 ` Goswin von Brederlow [this message]
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=87typvf9ci.fsf@frosties.localdomain \
--to=goswin-v-b@web.de \
--cc=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