Aerilius
2011-Sep-26 16:02 UTC
[Wine] Windows CLI Commands in Ruby freeze Wine application
I use a Wine application (Google SketchUp) that has Ruby as scripting language. I want to issue commands to the Windows cmd from within SketchUp/Ruby. When I write on the Ruby console in SketchUp: puts `dir` or puts `cd` it should return the result of that command, but it freezes SketchUp and the gnome-terminal gives this error after some seconds: err:ntdll:RtlpWaitForCriticalSection section 0x136d24 "?" wait timed out in thread 0009, blocked by 0000, retrying (60 sec) The command does work in wine cmd, and SketchUp has the correct path to find cmd.exe: ENV["ComSpec"] C:\windows\system32\cmd.exe What could I do to solve this?
Aerilius
2011-Sep-26 16:08 UTC
[Wine] Re: Windows CLI Commands in Ruby freeze Wine application
Wine 1.3.28 Ubuntu 11.04 Overriding ntdll.dll didn't help (and isn't recommended)
Aerilius
2011-Sep-29 10:51 UTC
[Wine] Re: Windows CLI Commands in Ruby freeze Wine application
still in Wine 1.3.29 Any ideas? I read that Ruby on Windows generally has some delays to send commands to cmd. Is that a possible reason for the time out? Can I turn off the time out or make it wait longer?
vitamin
2011-Sep-30 03:17 UTC
[Wine] Re: Windows CLI Commands in Ruby freeze Wine application
Aerilius wrote:> it should return the result of that command, but it freezes SketchUp and the gnome-terminal gives this error after some seconds:Try starting your program from wineconsole instead of regular *nix terminal.