Help save net neutrality! Learn more.
Close

#2103 Deleting a popup menu crashes wish

obsolete: 8.4b1
closed-invalid
5
2002-11-13
2002-11-13
Anonymous
No

The following code causes a serious crash of
wish84.exe on Windows XP, if you click the right
mouse button on the canvas.
-------------------------------------
pack [canvas .c]
bind .c <ButtonPress-3> {
set w .popupmenu
catch {destroy $w}
menu $w -tearoff 0
$w add command -label TEST
$w post %X %Y
}
bind .c <ButtonRelease-3> {
catch {destroy .popupmenu}
}
------------------------------------
This script is okay on Unix.

Discussion

  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    This is (probably) a Tk bug, not a Tcl bug. Resubmitting to
    tktoolkit project.

     
  • Donal K. Fellows

    • status: open --> closed-invalid