|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
killing a running process
I am wondering if someone knows how to kill a process after the application was closed. I have an application written in python but when I close the window, the process is still running in Task Manager. So I have to go and 'end process' manually each time through task manager.
Maybe someone knows how to tell OS to destroy the process after the app was closed?? Thank you. Regards, lentyaka |
|
#2
|
||||
|
||||
|
Hi lentyaka,
Not really answering your question but if the process is still there after you "terminate" the program then you did not terminate the program . The OS can't guess . When this happens in my code I use a [b]try .... finally[b/] block in the main module. So whatever happens to my code the finally section is always run. This is very useful for manually closing Win32 resources that are still open after an exception. In Tkinter it's a common error (for me ) to call the destroy() method when I really ment to call the quit() method - this can leave the process running but the actual window graphics are no longer visible.Grim ![]()
__________________
*** Experimental Python Markup CGI V2 *** |
|
#3
|
|||
|
|||
|
thanx a lot, it helped
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > killing a running process |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|