Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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