Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f85251dd6e7a2cd85eb0e6c96f191a85fad55014
Ticket: d365d2a3e3f77b150ea823639250fa9ad07aeb76
tk_getOpenFile crashes when passed a bad -typevariable
User & Date: anonymous on 2014-11-11 21:20:11
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    On Windows only, this script will crash the second time that tk_getOpenFile is executed.  This has happened on windows 32bit, 64bit, XP, 8.6.0-8.6.2.
    
    Select a file to open each time the dialog is displayed.  Both double-clicking and selecting open cause the failure.
    
    #!/usr/bin/tclsh
    
    package require Tk
    
    set types [list [list Sequence {.seq}]]
    puts "types:$types"
    set dir [pwd]
    set fh [open xyzzy.seq w];close $fh
    set fh [open plugh.seq w];close $fh
    
    for { set i 0 } { $i < 10 } { incr i } {
          set fn [tk_getOpenFile \
              -initialfile standardrounds \
              -initialdir $dir \
              -defaultextension .seq \
              -parent . \
              -typevariable $types \
              -filetypes $types \
              -title {Select Sequence} ]
    }
    exit
    
  5. foundin changed to: "8.6.2"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "e755306c9ef019bc4ca35d69adcf001dece786ff"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "18. Commands M-Z"
  15. title changed to:
    tk_getOpenFile crashes when passed a bad -typevariable
    
  16. type changed to: "Bug"