Hi, At Fri, 13 Jun 2003 08:05:39 +0900, Sean O'Dell wrote: > Now the problem I'm having is that print statements are causing the program > to hang. Presumably because the stdio handles Ruby is using aren't opened > properly because Ruby is being embedded into a true (non-console) Windows > application. I tried using AllocConsole() and freopen() to open up the > handles, and that does allow *my* application to print just fine, but any > Ruby script code that tries to print simply hangs my application. You might need to use SetStdHandle() instead of freopen(). > Curiously, though, raising an exception, while not printing to stderr as it > should be, also does not cause the application to hang. What time version are you using? Recent versions stop printing to $deferr, if an error occurs while exception handling. -- Nobu Nakada