From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA04834; Mon, 12 Jul 2004 14:03:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA04600 for ; Mon, 12 Jul 2004 14:03:12 +0200 (MET DST) Received: from annexia.force9.co.uk (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i6CC3BSH017246 for ; Mon, 12 Jul 2004 14:03:11 +0200 Received: from rich by annexia.force9.co.uk with local (Exim 3.36 #1 (Debian)) id 1BjzWY-00057d-00 for ; Mon, 12 Jul 2004 13:03:10 +0100 Date: Mon, 12 Jul 2004 13:03:10 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Toplevel crashes when trying to call external functions Message-ID: <20040712120310.GA19678@redhat.com> References: <1089629710.21716.12.camel@ares> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1089629710.21716.12.camel@ares> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde with ID 40F27DFF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 crashes:01 gerd:01 crashes:01 pointers:01 dbi:99 threads:01 ltd:98 caml:01 caml:01 toplevel:01 external:03 library:03 perl:03 efficient:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have to agree with Gerd on this. I've tried to use pointers- as-values but have had a lot of unexplained strangeness / crashes. I now wrap pointers in custom blocks every time. You can find working examples of this in both mod_caml and perl4caml sources. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment PTHRLIB is a library for writing small, efficient and fast servers in C. HTTP, CGI, DBI, lightweight threads: http://www.annexia.org/freeware/pthrlib/ ------------------- 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