[racket] threads and Windows 7

From: Sébastien Cano (hkjangshu at gmail.com)
Date: Wed Nov 10 09:42:48 EST 2010

Hi,
I'm currently working on a space invaders and I'm facing a problem with
Windows 7.

Given that I'm not really familiar with the concept of thread, I put my
canvas' paint-callback block in a thread... like :

 (paint-callback (lambda ()
(thread (lambda ()
           ......functions .....
               (send my-canvas on-paint)))))

And of course, I redefined its on-char function so I can control a ship.

Although the whole pack of enemies moves smoothly, the ship which I am
supposed to control rarely responds to commands on *Windows 7*.
As for Linux... it runs fine.

I guess it has to do with the way Windows manages threads.

Could anyone help me with this?
Thanks.

Sebastien Cano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101110/ebbd873b/attachment.html>

Posted on the users mailing list.