R. Mark Volkmann
12/13/2004 4:41:00 PM
Quoting Bill Atkins <batkins57@gmail.com>:
> Are you using any other libraries aside from Tk?
No, just Tk.
The following simple snippet of code demonstrates the problem. I see the
problem under Windows XP, but not under Windows 2000. On both platforms I'm
using ruby 1.8.2 (2004-11-06) from the Windows one-click installer.
require 'tk'
root = TkRoot.new
button = TkButton.new(root)
button.command lambda {Tk.exit}
button.text 'Exit'
button.pack
Tk.mainloop
> On Mon, 13 Dec 2004 11:23:16 +0900, R. Mark Volkmann <mark@ociweb.com> wrote:
> > ----- Original Message -----
> > From: "Bill Atkins" <batkins57@gmail.com>
> > To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
> > Sent: Sunday, December 12, 2004 2:52 PM
> > Subject: Re: clean Tk exit
> >
> > > Tk.exit ?
> >
> > Nope. I still get the same message when the application exits.
> > Any other ideas?
> >
> >
> >
> > > On Sun, 12 Dec 2004 12:38:38 +0900, R. Mark Volkmann <mark@ociweb.com>
> > > wrote:
> > >> How can I exit a Ruby application that uses Tk without getting the
> > >> following
> > >> message?
> > >>
> > >> "This application has requested the Runtime to teminate it in an unusual
> > >> way."
> > >>
> > >> Using Kernel#exit gives me this message.
> >
> >
>
>
> --
> $stdout.sync = true
> "Just another Ruby hacker.".each_byte do |b|
> ('a'..'z').step do|c|print c+"\b";sleep 0.007 end;print b.chr
> end; print "\n"
>
>
--
R. Mark Volkmann
Partner, Object Computing, Inc.