Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 072d4c7124196189b8d48fc9b1735efe0a6d8b85
Ticket: 1380338fffffffffffffffffffffffffffffffff
text widget "undo" crash
User & Date: nobody on 2005-12-14 11:33:03
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The following source code create a simple text widget 
    with 2 keys binding :
    
    alt-u (text undo)
    alt-r (text redo)
    
    When you type some chars in the text and then you make 
    repeatedly alt-u and alt-r the tcl/tk 8.4.11
    crash under win32 and linux i386 too (invalid memory 
    reference).
    
    Is it a bug ?
    
    Thank you
    
    
    -------------------------------------------------------
    ---------------------------------------------
    #code start here
    
    frame .f
    pack .f -fill both -expand 1
    
    text .f.testo -width 40 -height 10 -borderwidth 2 \
    -setgrid 1 -undo 1 -maxundo 20 -autoseparators 0
    pack .f.testo -fill both -expand 1
    
    
    bind Text <Alt-r> {}
    bind .f.testo <Alt-r> {
    
           catch { .f.testo edit redo }
    }
    
    bind Text <Alt-u> {}
    bind .f.testo <Alt-u> {
    
    catch { .f.testo edit undo }
    }
    
    bind .f.testo <KeyPress> {
    
            catch { .f.testo edit separator }
    }
    
    
    focus -force .f.testo
    #code end here
    -------------------------------------------------------
    ----------------------------------------------
    
    
    
  4. foundin changed to: "obsolete: 8.4.1.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "text widget "undo" crash"
  11. type changed to: "Bug"