[wxruby-users] DOS box popping up under rubyscript2exe

Alex Fenton alex at pressure.to
Wed Jul 9 05:47:00 EDT 2008


Hello

My email has been broken for a week and some of it seems to have gone 
astray - so if there are other unanswered wxruby queries kicking about, 
please repost or forward me them.

I have encountered this problem with a DOS box popping up under rubyw / 
rubyscript2exe; I don't think it's related to wxruby. I found them 
popping up when shelling out with backticks - I believe the way that 
ruby executes external programs on Windows causes this if no command 
shell is already present. This may be what's happen with receiving a 
message from an external program in your case.

I got round it by calling the external program via Win32API on Windows, 
instead of ruby's own system/backticks. There's some code that 
encapsulates this here:

http://weft-qda.rubyforge.org/svn/branches/stable_1-0/weft-qda/lib/weft/filters/win32backtick.rb

hth
alex


More information about the wxruby-users mailing list