Version française
Home     About     Download     Resources     Contact us    
Browse thread
Why 'Graphics.wait_next_event' doesn't reply anymore ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Why 'Graphics.wait_next_event' doesn't reply anymore ?
Zitat von Fabrice Marchant <fabrice.marchant@orange.fr>:

[...]
> >
> >   let code1 () =
> >         let x = ref 0 in
> >         while true do
> >           incr x;
> >           Printf.printf "alpha %d\n" !x;
> >           flush stdout
> (*                      ;
>             display_mode false;
>             fill_circle 100 100 20;
>             synchronize ()*)
> >         done
[...]


Oh, I see: display-mode also has to go out of the loop.

Things that must be called only once to work,
should only called once.

So, it has to go out of the loop.

And I has to go to bed now ;-)

Ciao,
   Oliver