[Fxruby-users] Re: Event handling incompatibility
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <jl...@cf...> - 2003-06-18 15:57:33
|
Dalibor Sramek wrote: > I have the following code in my application (www.insula.cz/dbtalk/): > > # Handle interrupt to save stuff nicely > application.addSignal('SIGINT', window, DbTalkWindow::ID_QUIT) > > # Create the windows > application.create > > # Open the connection dialog automatically > window.handle(window, MKUINT(DbTalkWindow::ID_OPENCONNECTION, SEL_COMMAND), nil) > > # Start event loop > application.run > > > This worked perfectly in FXRuby 1.0.20 but it crashes in 1.0.24 on the line > with window.handle. It is used for automatical opening of a dialog window after > the application starts-up. > > Is this a possible bug or did I use the feature incorrectly all the time before? Your code is OK; I think this is a bug in FXRuby. As a workaround, please see what happens if you replace this line: window.handle(window, MKUINT(DbTalkWindow::ID_OPENCONNECTION, SEL_COMMAND), nil) with this: window.onOpenConnection(nil, nil, nil) If that takes care of it, I think I know what the problem is... Lyle |