From: "Albert L. Wagner" Date: 2001-08-01T22:20:47+09:00 Subject: [ruby-talk:18956] Re: Tk bind to 'FocusOut' causes segfault P.S. This problem only appears on Win2k at work. It runs fine at home on my Linux box. "Albert L. Wagner" wrote: > > Using Tk, attempts to capture 'FocusOut' event, are causing a > segfault. I am new to Tk. Can someone point me in the right > direction? I've attached the code and the stackdump. > > # @widget=#, @type=9, > @subwindow="0x0", @rootwin_id="0x0", @keysym_num=0, @keysym="??", > @send_event=false, @wheel_delta=262956, @borderwidth=38411168, > @char="??", @y=0, @x=0, @width=0, @time=0, @state=0, > @place="PlaceOnTop", @override=false, @mode="NotifyNormal", > @keycode=262956, @height=0, @focus=false, > @detail="NotifyAncestor", @count=0, @num=262956, @above="??", > @serial=138> > focus in > /cygdrive/d/ruby/lib/ruby/1.6/tk.rb:606: [BUG] Segmentation fault > ruby 1.6.4 (2001-06-04) [i386-cygwin] > 0 [sig] ruby 1068 stackdump: Dumping stack trace to > ruby.exe.stackdump > > Tool completed with exit code 99840 > > -- > "It requires wisdom to understand wisdom: > the music is nothing if the audience is deaf." > - Walter Lippman > > ----------------------------------------------------------------- > Name: tkMyMain.rb > tkMyMain.rb Type: Ruby Program (application/x-unknown-content-type-rbFile) > Encoding: base64 > > ----------------------------------------------------------------- > Stack trace: > Frame Function Args > 0240E060 77E88787 (000000B8, 0000EA60, 00000000, 610433F9) > 0240E0B0 77E88787 (00000000, 1C0E55C6, 67D0B2C7, 61041CE5) > 0240E100 61041FF2 (00000006, 0000042C, 0243C7F0, 000000B8) > 0240E130 6103FBA8 (0000042C, 00000006, 61041EA4, 000000B0) > 0240E160 6103FD3E (0000042C, 00000006, 024A4120, 02474D00) > 0240E180 61076584 (6108D010, 0000042C, 00000006, 0240E1E0) > 0240E1B0 6106C278 (6108D010, 00000006, 0240E1E0, 00000016) > 0240E1D0 6106C250 (00000006, 67D0B2ED, 67D0B2E7, 67D0B2DC) > 0240E1F0 61068E8C (00000000, 1C14986E, 0240E238, 1C0E1A1F) > 0240E610 67D0B36B (67D6A29F, 00000000, 00000000, 0240E660) > 0240E630 67D6A2C7 (0000000B, 00000000, FFFFFFFF, 00000003) > 0240E660 6100DE1F (00000003, 0240E680, 1C1A4A10, 00000003) > 0240E66C 1C1A49F4 (00000003, 024F3072, 0240E7DC, 0240E7DC) > 0240E680 1C1A4A10 (0240E6C8, 00000003, 00000030, 00000006) > 0240E7DC 1C1B1164 (024473A0, 024F3072, 024F4628, 00000000) > 0240EA54 1C1AFFAC (0243C190, 024F4628, 024473A0, 00000004) > End of stack trace (more stack frames may be present) -- "It requires wisdom to understand wisdom: the music is nothing if the audience is deaf." - Walter Lippman