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 » U++ Library support » U++ Library : Other (not classified elsewhere) » exit() -> heap leaks detected.
Re: exit() -> heap leaks detected. [message #18004 is a reply to message #18002] Sat, 06 September 2008 08:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
captainc wrote on Fri, 05 September 2008 18:43

Seems with Upp, the right course of action would be to:
SetExitCode(1);
return;

instead of using exit(1);

As we are really in function ConsoleMainFn_(), which is called from main().
hmm, but this doesn't solve library issue.


IMO, you cannot solve the problem without altering the library code (maybe you should complain to the author Smile

Possible fix is to use exception handling - define something like "struct Exit", throw it instead of "exit" and catch in main, then SetExitCde(1), return.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ suggestions
Next Topic: RectTracker & MaxRect
Goto Forum:
  


Current Time: Sun May 12 01:32:05 CEST 2024

Total time taken to generate the page: 0.01908 seconds