Version française
Home     About     Download     Resources     Contact us    
Browse thread
Returning caml values from C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: andrew.p.cone <andrew.p.cone@g...>
Subject: Returning caml values from C

Hi everybody.

I have a C function that, given a list of caml values, returns a certain
sublist of those values.

Currently, I have the C code build up a caml list using caml_alloc and
Store_field. But when I try to access those values in caml, I get a
segfault.

I suspect the GC is deleting the input list, because it doesn't realize I've
made something new that refers to some of those values. How do I tell the GC
that something refers to some value?

Thanks,
AC


-- 
View this message in context: http://www.nabble.com/Returning-caml-values-from-C-tf4308363.html#a12264892
Sent from the Caml Discuss2 mailing list archive at Nabble.com.