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 #55401 is a reply to message #55399] Sat, 07 November 2020 11:37 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Peterh,

The trick with ExitProcess(0) seems like the hack and workaround. In good written application it is never needed. At the end of the program you should clean all resources, threads and processes. If for some reasons you can not close your application then you need to do the investigation and fix your code. Moreover ExitProcess(0) is Windows only and using it you will lose portability.

Klugier


U++ - one framework to rule them all.

[Updated on: Sat, 07 November 2020 11:39]

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 08:10:58 CEST 2024

Total time taken to generate the page: 0.02190 seconds