Tk Source Code

View Ticket
Login
Ticket UUID: 220308
Title: Wish doesn't close cleanly when exited with the X box on the window manager
Type: Bug Version: obsolete: 8.4a1
Submitter: welch Created on: 2000-10-31 23:10:35
Subsystem: 65. Generic Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2001-04-26 06:28:55
Resolution: Invalid Closed By: dgp
    Closed on: 2001-04-25 23:28:55
Description:
OriginalBugID: 5932 Bug
Version: 8.4a1
SubmitDate: '2000-06-21'
LastModified: '2000-09-05'
Severity: LOW
Status: Closed
Submitter: shawn
ChangedBy: hobbs
OS: Windows 2000
ClosedDate: '2000-09-05'


Whe I run this - and close using the X widget on the window - the process keeps running - 

To reproduce (Jeff - I will send you the app - or try /home/shawn/tktest/tktest.tcl - it very transient right now) run tktest.tcl and kill the app using the X box (typical windows stuff).  The process will still be running if viewed with the task manager. 

So it eats a ton of resouces and hampers the machine. 

I have to go and kill it - but if I execute an explcit exit command - it goes away 

Workaround - use the WM DELETE binding and explicitly exit the program. 



In thinking about this - I am wondering if this is the correct behavior - I have a loop that would continue running in the event loop - and I wonder if this might be more useful than my original thinking.  It could be useful in the case were I want to have a gui interface to a program that I wanted to keep running - such as the gui on tclhttpd - where I might want to close the gui but have the server continue to run. 

-- 06/22/2000 shawn

This sounds like the [X] box in questions isn't for the main toplevel,
but a child one.  If it isn't '.', then wish won't exit. 
-- 09/05/2000 hobbs