 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Tim Nicholson
RE: Troubles with WxRuby [ reply ] 2009-10-08 10:22
|
|
Having just ripped all of the debug 'puts' out of my code I find that the .rbw now runs properly, so it would seem that any output to stdout will crash the windowed application unlike linux where it just gets ignored.....:(
|
By: Tim Nicholson
RE: Troubles with WxRuby [ reply ] 2009-10-08 07:57
|
I have a wx application that behaves in the same manner by quitting almost immediately when compiled using the --windows option, but behaves perfectly in --console mode.
However I notice that if I copy my main .rb file to an .rbw one I get exactly the same behaviour when double clicking on the files in Windows Explorer. The .rb runs fine, the .rbw quits
It would therefore seem that the issue is not one to do with OCRA.
I wonder if it happens because I have a number of debug 'puts' in my code that have nowhere to go?
|
By: Ross Goodell
RE: Troubles with WxRuby [ reply ] 2009-06-18 19:34
|
Hi Dimas,
I'm no expert, but I did manage to get OCRA working on my application in Windows XP and would be glad to take a look at your problem if it is on Windows and you can get it into a form I can reproduce. However, your best bet might be to repost it on this forum as a new thread, perhaps with more detail.
All the best on this,
Ross Goodell
rossgoodell@hotmail.com />
|
By: Dimas Cyriaco
RE: Troubles with WxRuby [ reply ] 2009-06-17 19:42
|
I'm having some problems with ocra and wxruby.
I have a ruby script (main.rbw) that require others .rb script, and this .rb requires other .rb scripts (in a total of seven files).
Ocra compile the .exe but it doesn't run. It 'come into existing' for one second and dissaper.
I put '$LOAD_PATH.unshift File.dirname(__FILE__)' in the begining of the main.rbw, but nothing changed.
Do i have to put all the 'requires' in the main.rbw? (actually i tried this, but it didn't work either).
Can someone help me?
|
By: Alvaro Tejada
RE: Troubles with WxRuby [ reply ] 2009-05-17 12:41
|
Lars:
Woaw! Now it's working like a charm...Just rearranged my include list and put 'rubygems' on top...
require 'rubygems'
require 'wx'
include Wx
require "SAP/Rfc"
gem 'saprfc'
Thank you so much! -:D
Greetings,
Blag.
|
By: Alvaro Tejada
Troubles with WxRuby [ reply ] 2009-05-15 18:41
|
I develop a script using WxRuby 2.
When I compile it using Ocra, everything seems to work smoothly, but when I run the generated .exe I got the following error...
"Can't find the include 'wx'" (Or something like that...)
And of course...I can't execute my app -:(
Greetings,
Blag.
Senior ABAP Consultant - SAP Mentor.
|
|
 |