~$ wish
% menu .m
% . configure -menu .m
% bind . <3> {tk_popup .#m %X %Y}
press button 3 on the . toplevel result in
% Tk_MoveToplevelWindow called with non-toplevel window
Abort trap (core dumped)
~$
Same behaviour on 8.4.13 and 8.5a4.
Tested on NetBSD and OpenBSD
Can't reproduce in win, tested on latest
tclkit-win32.exe (8.5a4)
Logged In: YES
user_id=54935
Originator: NO
A similar or the same problem (FreeBSD 6.2, wish8.4 from the ports):
% menu .popupmenu -type menubar
% .popupmenu post 1 1
Tk_MoveToplevelWindow called with non-toplevel window
Abbruch(core dumped)
I don't have access to a Windows system, but a user with a similar Perl/Tk script had no crash.