Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: luther@maxime.u-strasbg.fr
To: caml-list@inria.fr
Subject: Caml et Gtk+/Gdk ...
Date: Wed, 18 Nov 1998 17:02:59 +0100	[thread overview]
Message-ID: <19981118170259.A10647@maxime.u-strasbg.fr> (raw)

Bonjour, ...

je suis en train d'experimenter un programme caml avec une boucle main C,
utilisant la premiere methode.

j'ai adapter le deuxieme exemple (avec l'appel de fib), mais j'obtient un :

Segmentation Fault (core dumped)

lors de l'appel de callback dans la la fonction C fib.

Lorsque j'utilise la deuxieme option, bytecode "embeded" dans du C, cela marche
sans probleme.

je pense que cela vient du fait que la fonction caml n'est pas registrer
correctement. La doc dis que caml_main appelle la section d'initialisation du
bytecode, qui devrait effectuer la "registration" des callback.

Comment et ou est defini cette parti d'initialization ? Æi-le mal compris
quelque chose ? Est-ce que quelqu'un a reussit a interfacer gtk/gdk avec ocaml,
avec la premiere methode ? la deuxieme ne permettant pas d'utiliser plus d'un
module.

Amicalement,

Sven LUTHER




             reply	other threads:[~1998-11-18 18:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-18 16:02 luther [this message]
1998-11-19  2:57 ` Jacques GARRIGUE
1998-11-19 12:56   ` luther sven
1998-11-19 21:02     ` David Monniaux
1998-11-20 10:26       ` luther
1998-11-20 10:01     ` Pascal Cuoq
1998-11-20 10:49       ` luther
1998-11-20 10:36     ` Jacques GARRIGUE

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=19981118170259.A10647@maxime.u-strasbg.fr \
    --to=luther@maxime.u-strasbg.fr \
    --cc=caml-list@inria.fr \
    --cc=luther@dpt-info.u-strasbg.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