Tk Source Code

View Ticket
Login
Ticket UUID: 644641
Title: W XP: ButtonProc called on invalid HWND
Type: Bug Version: obsolete: 8.4.1
Submitter: oehhar Created on: 2002-11-27 10:09:04
Subsystem: 68. Win Window Operations Assigned To: hobbs
Priority: 6 Severity:
Status: Closed Last Modified: 2004-02-14 05:56:31
Resolution: Works For Me Closed By: hobbs
    Closed on: 2004-02-13 22:56:31
Description:
when destroying a toplevel a message appears:  
ButtonProc called on an invalid HWND  
and wish crashes with a segmentation fault.  
  
Unfortunately I was not able to write a simple script to show the  
problem but it is reproduceable on a complex application.  
  
What basically happens:  
- Main application with menu  
- Toplevel created: toplevel .t  
- Messagebox created as a child from .t: tk_messageBox -parent .t  
- change to the main window (.) and select a menu entry which  
destroys the toplevel .t:  
        destroy .t  
The toplevel and the message box disapears and an error message  
shows up:  
        ButtonProc called on an invalid HWND  
Then wish crashes with a protection fault on a read operation.  
  
 If someone is interested to get the application to reproduce the error 
I will e-mail the whole application and instructions or I can make tries. 
 
I just wanted to document this. Clear it off if it is not sufficient. 
 
M. Cristiano Bernini [cbernini at iontrading com] reported the same 
problem.
User Comments: oehhar added on 2003-07-21 13:44:29:
Logged In: YES 
user_id=444601

I am sorry, I have thrown away the test source after two 
month because it was really huge and weired.

hobbs added on 2003-07-19 08:14:45:
Logged In: YES 
user_id=72656

This works for me with 8.4.almost4 on Win2K.  Can anybody 
else repro?  Perhaps a script that is more reliable to repro 
could be posted.