caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Lars Nilsson <lars@cymfony.com>
To: Olivier Andrieu <andrieu@ijm.jussieu.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Ocaml -> C -> Ocaml callback problem
Date: Tue, 19 Nov 2002 17:59:15 -0500	[thread overview]
Message-ID: <15834.49731.879928.494330@gargle.gargle.HOWL> (raw)
In-Reply-To: <15834.47144.266678.397466@karryall.dnsalias.org>

Thank you Olivier,

That seemed to solve my problem. Much appreciated. Now on to the real
deal.

Regards,
Lars Nilsson

Olivier Andrieu writes:
 > You're using CAMLparam macros to register the arguments in the GC but
 > then you're not using CAMLreturn.
 > 
 >  > CAMLprim value helper_doit()
 >  > {
 >  >      CAMLparam0();
 >  > 
 >  >      callback2(closure_fun, copy_string("foo"), closure_data);
 >  > 
 >         CAMLreturn(Val_unit);
 > 
 >  > }
 > 
 > (same thing for the other function).
 > 
 > -- 
 >    Olivier
-------------------
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


      reply	other threads:[~2002-11-19 23:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-19 21:20 Lars Nilsson
2002-11-19 22:16 ` Olivier Andrieu
2002-11-19 22:59   ` Lars Nilsson [this message]

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=15834.49731.879928.494330@gargle.gargle.HOWL \
    --to=lars@cymfony.com \
    --cc=andrieu@ijm.jussieu.fr \
    --cc=caml-list@inria.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).