Issue #5049 has been reported by Jon Forums.

----------------------------------------
Bug #5049: [ext/tk] Tk creating double MessageBox's 
http://redmine.ruby-lang.org/issues/5049

Author: Jon Forums
Status: Open
Priority: Normal
Assignee: 
Category: ext
Target version: Ruby 1.8.7
ruby -v: ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]


When running the following simple test on 1.8.7-p352 built with TDM-1 GCC 4.5.2 and the RubyInstaller recipes, I get two MessageBox's. One empty, one with the message.

  ruby -rtk -e "Tk.messageBox :message => 'Hello Ruby Tk'"

Additional working and non-working samples => http://pastie.org/2233258

This does not occur when using MinGW versions of ruby 1.9.2p290 (2011-07-09 revision 32478) [i386-mingw32] or ruby 1.9.4dev (2011-07-18 trunk 32578) [i386-mingw32].

Jon


-- 
http://redmine.ruby-lang.org