Tk Source Code

View Ticket
Login
Ticket UUID: 220229
Title: WinNT Dr Watson when using WM_DELETE_WINDOW
Type: Bug Version: obsolete: 8.3b2
Submitter: welch Created on: 2000-10-31 22:59:57
Subsystem: 68. Win Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2001-04-26 06:02:40
Resolution: Invalid Closed By: dgp
    Closed on: 2001-04-25 23:02:40
Description:
OriginalBugID: 2640 Bug
Version: 1.3
SubmitDate: '1999-08-31'
LastModified: '1999-11-16'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
OSVersion: NT 4.0 SP4
Machine: X86
ClosedDate: '1999-11-16'


Name:

Raultk Segura Acevedo



Comments:

under my NT it does NOT crash if I pass "My_Exit"'s body as an argument

    to "wm protocol . WM_DELETE_WINDOW...", but it does under win95.

    it doesn't crash if I remove the line "if {$modificado..." nor with a

    shorter "set out [tk_messageBox..." command



ReproducibleScript:

run the following script and close it pressing Alt-F4 or clicking the

    button x

    

    set modificado 0

    wm protocol . WM_DELETE_WINDOW "My_Exit"

    

    proc My_Exit {} {

      global modificado

    

      if {$modificado == 0} {destroy .}

      set out [tk_messageBox -type yesnocancel -title "Confirmacion"

    -message \

        "El archivo no ha sido guardado.\nGuardar el archivo antes de

    salir?"]

      destroy .

    }



ObservedBehavior:

prowish82 crashes under windows, I get a Dr. Watson window and a memory

    dump on NT and a message error on Win95



DesiredBehavior:

a clean program termination





Not verifiable on NT or 98 with 8.2.1, or NT with prowish82
(Tcl 8.2.0). 
-- 11/16/1999 hobbs