Hi, Le samedi 15 octobre 2011 à 13:30 +0400, Kakadu a écrit : > arg1 = Val_int(1); > // caml_callback2(meth, obj, arg1); // segfault in this line
In your example arg1 should be a string, here it is an int. And the commented line is the right way to call the method. Cheers, -- Jérémie -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
