Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Program didn't exit in Task Manager after click [X]
Re: Program didn't exit in Task Manager after click [X] [message #55389 is a reply to message #55271] Thu, 05 November 2020 13:51 Go to previous messageGo to previous message
peterh is currently offline  peterh
Messages: 108
Registered: November 2018
Location: Germany
Experienced Member
While in the debugger, the program doesnt stop either.
If I click [x], the window is closed, but the stop button of the debugger stays red and CPU-load in Windows Task manager is high.
In the "threads" section of the debugger it can be seen, several threads are still running and waiting inside windows e.g. "WaitForMultipleObjects".
If the red stop button of the debugger is clicked, the threads are terminated, so the debugger can do this, but the program obviously does not successfully terminate all threads.

Maybe, some threads are blocked on Kernel objects by blocking I/O? In this case these cannot be immediately terminated.
Because the threads can be killed by Windows Task Manager and/or debugger, there is some hope you can kill them programmatically before the main GUI thread terminates.
This is of course a brute force solution, maybe there are better solutions, but I cannot give advice, because I am not specialist for this matter.

Good luck!
P.S. If the programm is running normally it consumes a lot of CPU while doing nothing than waiting.
Maybe this is a side effect of my system configuration or of debugger, I dont know.

[Updated on: Sat, 07 November 2020 08:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: report generator
Next Topic: Pie Chart in U++?
Goto Forum:
  


Current Time: Thu May 16 11:42:47 CEST 2024

Total time taken to generate the page: 0.01814 seconds