Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] newby using Thread on windows (different than linux)...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver George (Boyer) <Oliver.George@n...>
Subject: [Caml-list] newby using Thread on windows (different than linux)...
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