# Re: No joy from Wx::App.dispatch, Wx::App.yield

**URL:** <https://www.ruby-forum.com/t/re-no-joy-from-wx-app-dispatch-wx-app-yield/126597>\
**Category:** wxRuby\
**Created:** [January 20, 2008, 2:37am UTC](https://www.ruby-forum.com/t/re-no-joy-from-wx-app-dispatch-wx-app-yield/126597 "2008-01-20T02:37:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_McGavren](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e79b87/32.png) [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Post date:** [January 20, 2008, 2:37am UTC](https://www.ruby-forum.com/t/re-no-joy-from-wx-app-dispatch-wx-app-yield/126597/1 "2008-01-20T02:37:26Z")

</div>

Mario S. wrote:

> To process an exit event, or rather a close event, utilize  
> evt\_close event handler.

Well, look at that. It had always worked on its own before, so I got  
lazy. But one line of code in on\_init did it:

frame.evt\_close {|event| exit}

> Also, what errors are you getting with 1.9.3/4?

In a pop-up dialog:

The dynamic link library gdiplus.dll could not be found in the specified  
path  
[long path omitted]

And on STDERR:

C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.4-i386-mswin32/lib/wxruby2.so:  
126: The specified module could not be found. -  
C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.4-i386-mswin32/lib/wxruby2.so  
(LoadError)

This is on Windows 2000, BTW, I haven’t tried it on my XP setup (but  
will if needed).

Many thanks for the help!

-Jay McGavren  
[http://jay.mcgavren.com/zyps](http://jay.mcgavren.com/zyps)

---

<div class="post-metadata">

**Author:** ![Jay\_McGavren](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e79b87/32.png) [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Post date:** [January 21, 2008, 1:20am UTC](https://www.ruby-forum.com/t/re-no-joy-from-wx-app-dispatch-wx-app-yield/126597/2 "2008-01-21T01:20:34Z")

</div>

Jay McGavren wrote:

> In a pop-up dialog:
> 
> The dynamic link library gdiplus.dll could not be found in the specified path  
> [long path omitted]

Thanks for the report. gdiplus.dll became a new dependency in 1.9.3 with  
the addition of the GraphicsContext classes for antialiased drawing. We  
build and test on Win XP where it’s always available, and didn’t realise  
it wasn’t included in a default install of W2K. However it seems it can  
downloaded and installed for free on 2000, and is often required by  
other apps.

Zyps looks a fascinating project, perhaps the most interesting I’ve seen  
in Ruby GUI programming. I’m keen to try it out; do let me know when  
there’s a release, or even when it’s runnable from SVN with wxRuby.

alex
