Hi, I''ve been trying to use rubyw to execute apps without the command window however I get the following error seemingly from every ruby program I try. --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Runtime Error! Program: C:\ruby\bin\rubyw.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application''s support team for more information. --------------------------- OK --------------------------- I''ve tried re-installing the latest version of the 1-click installer but I still get the same problem. I''ve had no problems with ruby.exe. Can anyone shed any light on this problem? Platform is Windows XP-SP1. Many thanks, Matt -- Matt Mower :: http://matt.blogs.it/
Matt Mower wrote:> > I''ve been trying to use rubyw to execute apps without the command > window however I get the following error seemingly from every ruby > program I try. > > --------------------------- > Microsoft Visual C++ Runtime Library > --------------------------- > Runtime Error! > > Program: C:\ruby\bin\rubyw.exe > > > > This application has requested the Runtime to terminate it in an > unusual way. > Please contact the application''s support team for more information. > > > --------------------------- > OK > --------------------------- > > I''ve tried re-installing the latest version of the 1-click installer > but I still get the same problem. I''ve had no problems with ruby.exe. > Can anyone shed any light on this problem? > > Platform is Windows XP-SP1.Are you saying that ruby.exe works but rubyw.exe does not? Try ruby.exe and rubyw.exe on a very simple script (say, one that writes "hello world" to a text file). Curt
Hi Curt, On Mon, 21 Feb 2005 08:59:05 -0600, Curt Hibbs <curt@hibbs.com> wrote:> > I''ve been trying to use rubyw to execute apps without the command > > window however I get the following error seemingly from every ruby > > program I try. > >> Are you saying that ruby.exe works but rubyw.exe does not? >That''s right. I have no problems with ruby.exe.> Try ruby.exe and rubyw.exe on a very simple script (say, one that writes > "hello world" to a text file). >I wrote such a program and here rubyw.exe doesn''t abort. In my experience the problem seems to happen just after the app opens a window -- i.e. the window is drawn but no contents & then the program goes bang! It happens with fxirb and fxri. Does that help? M -- Matt Mower :: http://matt.blogs.it/
Matt Mower wrote:> > Hi Curt, > > On Mon, 21 Feb 2005 08:59:05 -0600, Curt Hibbs <curt@hibbs.com> wrote: > > > I''ve been trying to use rubyw to execute apps without the command > > > window however I get the following error seemingly from every ruby > > > program I try. > > > > > > Are you saying that ruby.exe works but rubyw.exe does not? > > > > That''s right. I have no problems with ruby.exe. > > > Try ruby.exe and rubyw.exe on a very simple script (say, one that writes > > "hello world" to a text file). > > > > I wrote such a program and here rubyw.exe doesn''t abort. In my > experience the problem seems to happen just after the app opens a > window -- i.e. the window is drawn but no contents & then the program > goes bang! > > It happens with fxirb and fxri. > > Does that help?Sounds like you might be having a problem with the FXRuby package that comes with the one-click installer. Try updating to the latest version of FXRuby by opening a command window and running the command "gem update". This will update all installed RubyGems (including FXRuby) to their latest versions. It will ask you to select the version and platform of FXRuby to install -- you want choice #1 (fxruby 1.2.3 for mswin32). Curt
On Mon, 21 Feb 2005 11:54:30 -0600, Curt Hibbs <curt@hibbs.com> wrote:> Sounds like you might be having a problem with the FXRuby package that comes > with the one-click installer. Try updating to the latest version of FXRuby > by opening a command window and running the command "gem update". This will > update all installed RubyGems (including FXRuby) to their latest versions. > It will ask you to select the version and platform of FXRuby to install -- > you want choice #1 (fxruby 1.2.3 for mswin32). >Hmm... I did a gem uninstall for the versions of fxruby I had and then installed 1.2.3 for ms-win32. It did *seem* to make a difference. Now applications paint their window at least once. However I still get the run-time error / abort that I reported before. Regards, Matt -- Matt Mower :: http://matt.blogs.it/
Matt Mower wrote:> > On Mon, 21 Feb 2005 11:54:30 -0600, Curt Hibbs <curt@hibbs.com> wrote: > > Sounds like you might be having a problem with the FXRuby > package that comes > > with the one-click installer. Try updating to the latest > version of FXRuby > > by opening a command window and running the command "gem > update". This will > > update all installed RubyGems (including FXRuby) to their > latest versions. > > It will ask you to select the version and platform of FXRuby to > install -- > > you want choice #1 (fxruby 1.2.3 for mswin32). > > > > Hmm... I did a gem uninstall for the versions of fxruby I had and then > installed 1.2.3 for ms-win32. > > It did *seem* to make a difference. Now applications paint their > window at least once. However I still get the run-time error / abort > that I reported before.I would post this to ruby-talk along with the console log showing your error. That way Lyle Johnson (the author of FXRuby) and other FXRuby gurus will see it and may recognize the problem. Curt