From: Laurent Julliard Date: 2002-09-09T03:40:41+09:00 Subject: FXRuby: addInput broken on Ruby/Windows? Today I tried to run a FXRuby app on WIndows for the first time and discovered that addinput on Ruby IO objects doesn't work on Windows. The same code works ok on Linux. I thought it was a problem im my code but then I tried to run FXRuby inputs.rb example and noticed that it doesn't work either on Windows (works ok on Linux). Then I lokked at the FOX FAQ I found the following note on addInput: "On MS-Windows, instead of a POSIX file descriptor, you must use a handle. Thus, under MS-Windows, the addInput() API can be used to wait on a great variety of kernel objects, ranging from event objects (which is what you need to use for sockets), to process and thread handles, and so on. Please consult the MSDN documentation on Winsock2 for details" Looking at the file io.c in Ruby I'm under the impression that even on WIn32 Ruby uses POSIX file descriptor for IO objects and not Win32 handles? Is my understanding correct? And if so is there a workarounf to make addInput on Ruby/Win32? Thanks for your help Laurent