# Error: undefined method 'calc\_min' for #\<Wx::UpdateUIEvent:0

**URL:** <https://www.ruby-forum.com/t/error-undefined-method-calc-min-for-wx-0/150511>\
**Category:** wxRuby\
**Created:** [October 9, 2008, 10:50am UTC](https://www.ruby-forum.com/t/error-undefined-method-calc-min-for-wx-0/150511 "2008-10-09T10:50:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [October 9, 2008, 10:50am UTC](https://www.ruby-forum.com/t/error-undefined-method-calc-min-for-wx-0/150511/1 "2008-10-09T10:50:36Z")

</div>

My application has been running fine for weeks, just today got this  
error twice:

Error: undefined method ‘calc\_min’ for #Wx::UpdateUIEvent:0xb18f9c4

OS: WXMSW  
Ruby Version: 1.8.6  
Backtrace:  
E:/work/iTest2/app/main.rb:180:in `calc_min' E:/work/iTest2/app/main.rb:180:in`layout’  
E:/work/iTest2/app/main.rb:180:in `process_event' E:/work/iTest2/app/main.rb:180:in`main\_loop’

The line 180 is  
app.main\_loop

Env: Win XP, wxRuby 1.9.8 mswin32

Regards,  
Zhimin
