English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Re: [Caml-list] Segfault using malloc within stubs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-08 (18:07)
From: art yerkes <ayerkes@s...>
Subject: Re: [Caml-list] Segfault using malloc within stubs
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