[wxruby-users] DOS box popping up under rubyscript2exe

Eric Rubin erubin at valcom.com
Wed Jul 9 09:00:00 EDT 2008


Thanks, Alex.  I did find a place where I was doing `hostname` and getting
rid of this fixed the problem.

Eric

-----Original Message-----
From: wxruby-users-bounces at rubyforge.org
[mailto:wxruby-users-bounces at rubyforge.org] On Behalf Of Alex Fenton
Sent: Wednesday, July 09, 2008 5:47 AM
To: General discussion of wxRuby
Subject: [wxruby-users] DOS box popping up under rubyscript2exe

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/filt
ers/win32backtick.rb

hth
alex
_______________________________________________
wxruby-users mailing list
wxruby-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users



More information about the wxruby-users mailing list