caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Matthieu Dubuget" <matthieu.dubuget@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] nonlinear fit function binding
Date: Thu, 31 May 2007 13:42:48 +0200	[thread overview]
Message-ID: <9f09a07a0705310442v7682b4c5wdfbee3fe646ab4e6@mail.gmail.com> (raw)
In-Reply-To: <JIL7B3$F83B3B9391705D4C967D6B7CB13762E9@laposte.net>

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

Well. It seems my former message was unclear?

Here is a more precise question: should/could C allocated bigarrays
 be freed?

Context:

OCaml calls one C function M, at about 50
Hz.
In M,  a C function (let's call it A) is locally defined.
One pointer to A is given to another function, that
calls A more than once.

Function A wraps a C array it receives as a parameter
into a bigarray, and give it to OCaml through one callback.

The whole process is repeated, at about 50 Hz.

I do not know if the bigarrays allocated by M are garbage
collected in any way, and if they are not, how I could free
them in order to avoid any memory leak?

Thanks in advance
Salutations

Matthieu

[-- Attachment #2: Type: text/html, Size: 973 bytes --]

  reply	other threads:[~2007-05-31 11:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-25  7:54 matthieu.dubuget
2007-05-31 11:42 ` Matthieu Dubuget [this message]
2007-05-31 12:22 [Caml-list] " RABIH.ELCHAAR
2007-06-04  7:37 ` Matthieu Dubuget
2007-06-05  9:33 RABIH.ELCHAAR
2007-06-05  9:44 RABIH.ELCHAAR

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=9f09a07a0705310442v7682b4c5wdfbee3fe646ab4e6@mail.gmail.com \
    --to=matthieu.dubuget@gmail.com \
    --cc=caml-list@inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).