caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: art yerkes <ayerkes@speakeasy.net>
To: julius <flute@noos.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Segfault using malloc within stubs
Date: Tue, 8 Feb 2005 12:42:55 -0600	[thread overview]
Message-ID: <20050208124255.6d90017c.ayerkes@speakeasy.net> (raw)
In-Reply-To: <42062429.4050404@noos.fr>

On Sun, 06 Feb 2005 15:05:29 +0100
julius <flute@noos.fr> wrote:

> Actually, this is just un exemple that illustrates the real function I 
> used. We can add some use of the test pointer and result value but it 
> changes nothing: in this function you can't do anything that someway 
> malloc the test pointer.
> As you say it's very weird and much disapointing :)
> 
> Julius
> 
> PS: In my implementation, test is given to a function that use it to 
> stock its result (after malloc it), and result is a caml value pointing 
> to some calculus result. The end is same: segfault...
> 

If you like, you can give SWIG a chance to create this interface for you.
try http://www.swig.org/
-- 
Here's a simple experiment. Stand on a train track between two locomotives
which are pushing on you with equal force in opposite directions. You will
exhibit no net motion. None the less, you may soon begin to notice that
something important is happening.
-- Robert Stirniman


  parent reply	other threads:[~2005-02-08 18:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-06 14:05 julius
2005-02-08 17:51 ` Damien Doligez
2005-02-08 18:42 ` art yerkes [this message]
2005-02-25  0:36 Garry Belka

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=20050208124255.6d90017c.ayerkes@speakeasy.net \
    --to=ayerkes@speakeasy.net \
    --cc=caml-list@inria.fr \
    --cc=flute@noos.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).