Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] GC and C
@ 2004-01-13 17:56 Lauren A
  2004-01-13 18:34 ` Richard Jones
  0 siblings, 1 reply; 6+ messages in thread
From: Lauren A @ 2004-01-13 17:56 UTC (permalink / raw)
  To: caml-list

I'm trying to call an already-written C function from
my OCaml code. I've written a wrapper for the C
function (in C) that calls CAMLparam on the incoming
arguments and uses CAMLreturn for the return value. 

Somewhere in the middle of my program, I get a seg
fault, which, when I use a debugger, looks like it's
coming from the garbage collector. Weirdly, when I
call Gc.compact() in my OCaml code-- either directly
before or after calling my C wrapper function-- I
don't get a seg fault and everything seems to work
properly.

Does anyone have any idea what might be going on?

Thank you very much,
Lauren


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-13 22:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13 17:56 [Caml-list] GC and C Lauren A
2004-01-13 18:34 ` Richard Jones
2004-01-13 19:41   ` Kip Macy
2004-01-13 20:27     ` malc
2004-01-13 21:44       ` Issac Trotts
2004-01-13 22:32         ` Dustin Sallings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox