# Re: wxruby 1.9.4 crashes with ruby 1.9.0

**URL:** <https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/130113>\
**Category:** wxRuby\
**Created:** [February 25, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/130113 "2008-02-25T15:16:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhang\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/cdc98d/32.png) [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Post date:** [February 25, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/130113/1 "2008-02-25T15:16:26Z")

</div>

No. I don’t have any “evt\_foo :on\_foo” construct in my code.

What else might cause the problem?

Thanks!

----- Original Message ----  
From: Alex F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: General discussion of wxRuby [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Monday, February 25, 2008 6:14:32 AM  
Subject: Re: [wxruby-users] wxruby 1.9.4 crashes with ruby 1.9.0

Zhang  
Peng  
wrote:

> 

I  
downloaded  
ruby  
1.9.0  
and  
do  
“make”  
and  
“make  
install”  
ruby  
to

> 

/usr/local  
…

> 

When  
I  
tried  
to  
run  
my  
wxruby  
code,  
I  
got  
the  
following  
message  
…

There  
is  
a  
known  
bug  
in  
ruby  
1.9.0  
which  
affects  
event  
handlers  
of  
the  
form:  
evt\_foo  
:on\_foo

Do  
you  
have  
any  
of  
these  
in  
your  
code?  
If  
so  
see  
if  
it  
works  
if  
you  
specify  
the  
event  
handler  
like  
this:

evt\_foo  
{  
|  
event  
|  
on\_foo(event)  
}

[http://rubyforge.org/tracker/?func=detail&aid=16625&group\_id=426&atid=1698](http://rubyforge.org/tracker/?func=detail&aid=16625&group_id=426&atid=1698)

alex

* * *

wxruby-users  
mailing  
list  
removed\_email\_address@domain.invalid  
[http://rubyforge.org/mailman/listinfo/wxruby-users](http://rubyforge.org/mailman/listinfo/wxruby-users)

```
  ____________________________________________________________________________________

```

Never miss a thing. Make Yahoo your home page.  
[http://www.yahoo.com/r/hs](http://www.yahoo.com/r/hs)

---

<div class="post-metadata">

**Author:** ![Zhang\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/cdc98d/32.png) [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Post date:** [February 25, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/130113/2 "2008-02-25T15:42:34Z")

</div>

Zhang P. wrote:

> No. I don’t have any “evt\_foo :on\_foo” construct in my code.
> 
> What else might cause the problem?  
> Hard to say without any code to look at. You did compile your own wxruby  
> against 1.9.0? Binary libraries compiled against ruby 1.8.6 are not  
> compatible with 1.9.0.

alex
