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 HAA00708; Wed, 6 Mar 2002 07:33:36 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA00729 for caml-list@pauillac.inria.fr; Wed, 6 Mar 2002 07:33:36 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id GAA00093 for ; Wed, 6 Mar 2002 06:24:08 +0100 (MET) Received: from sysrelay01.norske-skog.com.au ([203.47.71.211]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id g265O5v02574 for ; Wed, 6 Mar 2002 06:24:06 +0100 (MET) Received: from republic.fcpa.com.au ([172.21.65.222]) by sysrelay01.norske-skog.com.au (NAVGW 2.5.1.10) with SMTP id M2002030616202408862 for ; Wed, 06 Mar 2002 16:20:24 +1100 Received: by republic.norske-skog.com.au with Internet Mail Service (5.5.2653.19) id <1SB4QCCP>; Wed, 6 Mar 2002 16:24:00 +1100 Message-ID: <94162A8208F3D211A3FA00902712E10302B65EFB@mailserver.boyer.anm.com.au> From: "Oliver George (Boyer)" To: "'caml-list@inria.fr'" Subject: [Caml-list] newby using Thread on windows (different than linux)... Date: Wed, 6 Mar 2002 16:24:20 +1100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, This is my first ocaml script but i don't think i've done anything silly... (* My first ocaml program! identifies a thread problem. * build with: * ocamlc -thread unix.cma threads.cma threadtest.ml -o threadtest.exe *) Printf.printf "one\n"; Thread.delay 1.0; Printf.printf "two\n"; Thread.delay 1.0; Printf.printf "three\n"; This script works on my debian/testing server but will bomb out on windows nt running ocaml 3.04. It bombs out at the first Thread.delay statement, quietly and without error... On windows: ======== C:\data\cp>ocamlc -thread unix.cma threads.cma cp.ml -o cp.exe C:\data\cp>cp.exe C:\data\cp> ======== On Linux: ======== opgeorge@bywdeb002:~/tmp$ ocamlc -thread unix.cma threads.cma threadtest.ml -o test opgeorge@bywdeb002:~/tmp$ ./test one two three opgeorge@bywdeb002:~/tmp$ ======== Can anyone tell me what i'm doing wrong... thanks, Oliver. ------------------- 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