# Wxruby2 problems

**URL:** <https://www.ruby-forum.com/t/wxruby2-problems/127713>\
**Category:** Ruby\
**Created:** [January 31, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/wxruby2-problems/127713 "2008-01-31T17:46:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/3bc359/32.png) [@eliben](https://www.ruby-forum.com/u/eliben)\
**Post date:** [January 31, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/wxruby2-problems/127713/1 "2008-01-31T17:46:05Z")

</div>

Hello,

I’ve recently installed wxruby2 (version 1.9.4) from a precompiled  
mswin32 gem. It seems to work fine, and the samples in the  
distribution all work, but I have a couple of peculiar problems:

1. When I package a trivial wxruby script with rubyscript2exe, the  
executable is huge - 8.5 MB. With previous versions of wxruby (prior  
to wxruby2, I think) it was much smaller. Less than 3 MB. Is this how  
much the new wxruby takes, or am I doing something wrong ?

2. [warning: this is bizarre!] While running a script with a wxruby  
GUI, my mouse (trackball, actually) becomes much slower. It’s  
configured to be quite fast because I have a large script, but slows  
down (by a factor of 2, at least) while the script is running. When  
the script exits, the cursor regains its original speed. This does not  
happen with simple ruby scripts (those without wxruby)

Please help,  
Eli

---

<div class="post-metadata">

**Author:** ![eliben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/3bc359/32.png) [@eliben](https://www.ruby-forum.com/u/eliben)\
**Post date:** [January 31, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/wxruby2-problems/127713/2 "2008-01-31T22:15:58Z")

</div>

Eli B. wrote:

> I’ve recently installed wxruby2

Please take questions about wxRuby to the wxruby-users mailing list:

[http://rubyforge.org/mail/?group\_id=35](http://rubyforge.org/mail/?group_id=35)  
[http://www.ruby-forum.com/forum/36](http://www.ruby-forum.com/forum/36)

> 1. When I package a trivial wxruby script with rubyscript2exe, the  
> executable is huge - 8.5 MB. With previous versions of wxruby (prior  
> to wxruby2, I think) it was much smaller. Less than 3 MB. Is this how  
> much the new wxruby takes, or am I doing something wrong ?

wxRuby2 is substantially larger than wxruby 0.6.0 because it supports  
many more features. But the main problem is that there is a bug in  
rubyscript2exe which means the binary file is included twice in the  
.exe. You can manually unpack and repack the .exe to get round this.

> 1. [warning: this is bizarre!] While running a script with a wxruby  
> GUI, my mouse (trackball, actually) becomes much slower.

Strange; I suggest you post a short sample illustrating the problem to  
the wxruby mailing list and we can take it from there.

alex
