[wxruby-users] WX::Dialog won't close
Alex Fenton
alex at pressure.to
Fri Oct 10 05:48:01 EDT 2008
Hi Glen
Glen Holcomb wrote:
> It would appear that the only instruction that doesn't run at the end
> of on_okay is close, exit works fine. This kind of blows, I suppose
> I'll have to start another instance of the app and exit after the
> populate finishes, not the cleanest solution.
I'm sure you won't need to do this.
Generally, if you want help, please reduce the code to a standalone,
runnable, and ideally short sample. I'm very happy to help, but it's too
much to expect people to install extra libraries and second-guess what
the rest of your app is doing.
I did try running your code, pruned of the LDAP stuff. It seems fine to
me - there's nothing in the dialog layout itself. I would suggest
checking that the dialog has an explicit parent, not nil - it is better
in most cases that the dialog is linked to a parent frame. In the
special case that an application consists only of a single dialog, you
must use Dialog#destroy to end the app, close is not sufficient.
If this doesn't help, I would look further into net/ldap and see whether
this is causing it to hang - ie, if ok does nothing but 'close' does it
work fine?
cheers
alex
More information about the wxruby-users
mailing list