Date: Tue, 16 Apr 2002 12:52:43 +0200 From: Claudio Sacerdoti Coen To: lablgtk at kaba.or.jp Subject: Problem with lablgl, lablgtk and dynamic linking Message-ID: <20020416125243.E12398 at cs.unibo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi lablgtk experts, Yesterday I spent many hours trying to debug a very strange error in my binding to GtkMathview and I "traced" it to this strange phenomena: When dlllablgtkgl.so is dynamically linked, I get this exception raised: Fatal error: exception Gtk.Warning("gdome_xml_n_mkref: invalid node type") The exception comes from a messed-up pointer in the code of gdome2. (It is not a binding, but a C library). The behaviour is not the same on every machine. For example, on another one I need to dynamically link both dlllablgtkgl.so and dlllablglade.so. This seems to suggest a problem with my binding and/or the GC, but the only part of my binding that is executed is this single line: external create : Gtk.adjustment optobj -> Gtk.adjustment optobj -> math_view obj = "ml_gtk_math_view_new" that is bound in ml in this way: ML_2 (gtk_math_view_new,GtkAdjustment_val, GtkAdjustment_val, Val_GtkWidget_sink) This behaviour only appears in the interpreted version and not in the compiled one. Do you happen to know of some open bug somewhere in lablgtk or in the dynamic linking machinery of ocaml or should I think that there are problems inside some of the C libraries? Thank you for any suggestion. Back to debugging, C.S.C. -- ---------------------------------------------------------------- Real name: Claudio Sacerdoti Coen PhD Student in Computer Science at University of Bologna E-mail: sacerdot@cs.unibo.it http://caristudenti.cs.unibo.it/~sacerdot ---------------------------------------------------------------- -- To UNSUBSCRIBE, email to debian-ocaml-maint-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org ----- End forwarded message ----- -- ---------------------------------------------------------------- Real name: Claudio Sacerdoti Coen PhD Student in Computer Science at University of Bologna E-mail: sacerdot@cs.unibo.it http://caristudenti.cs.unibo.it/~sacerdot ----------------------------------------------------------------