Getting unexpected return (LocalJumpError) Rubyscript2exe

E

Eric Chiasson

Hi,
When running Rubyscript2exe on my .rb application. I get and unexpected
return (LocalJumpError). But works fine when I do ruby app.rb.

The only thing on that line is return 0;
Is this normal ? If not. anyone knows how to fix it ?

Thanks!
 
E

Eric Chiasson

Eric said:
Hi,
When running Rubyscript2exe on my .rb application. I get and unexpected
return (LocalJumpError). But works fine when I do ruby app.rb.

The only thing on that line is return 0;
Is this normal ? If not. anyone knows how to fix it ?

Thanks!

I continued reading the Ruby Documentation and used exit(int) instead of
return and it works great!

My code did not use any functions. So I now assume return is for
functions and exit is to return to any calling application

Thanks to anyone who took the time to read it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top