Home » U++ Library support » U++ Library : Other (not classified elsewhere) » exit() -> heap leaks detected.
Re: exit() -> heap leaks detected. [message #18003 is a reply to message #18001] |
Sat, 06 September 2008 08:39 |
|
mirek
Messages: 13984 Registered: November 2005
|
Ultimate Member |
|
|
captainc wrote on Fri, 05 September 2008 18:39 | From definition of exit function:
Quote: | Terminates the process normally, performing the regular cleanup for terminating processes.
First, all functions registered by calls to atexit are executed in the reverse order of their registration. Then, all streams are closed and the temporary files deleted, and finally the control is returned to the host environment.
|
This is why I have been confused. Is the definition not consistent with the actions? I guess I did not research it enough... neither did a few library authors!
|
Well, global destructors are registred via atexit (usually, it is). Anyway, "exit" never returns, means nothing can be called at the end of block.
OTOH, as system usually performs necessarry cleanup (closing file handles etc...), I can see that some C++ library calls exit, not caring about leaks. But that is not really correct in my book.
Mirek
|
|
|
|
|
exit() -> heap leaks detected.
By: captainc on Fri, 05 September 2008 22:23
|
|
|
Re: exit() -> heap leaks detected.
By: mr_ped on Fri, 05 September 2008 23:00
|
|
|
Re: exit() -> heap leaks detected.
By: captainc on Fri, 05 September 2008 23:15
|
|
|
Re: exit() -> heap leaks detected.
By: mr_ped on Fri, 05 September 2008 23:44
|
|
|
Re: exit() -> heap leaks detected.
By: mirek on Sat, 06 September 2008 00:07
|
|
|
Re: exit() -> heap leaks detected.
By: captainc on Sat, 06 September 2008 00:39
|
|
|
Re: exit() -> heap leaks detected.
By: captainc on Sat, 06 September 2008 00:43
|
|
|
Re: exit() -> heap leaks detected.
By: mirek on Sat, 06 September 2008 08:41
|
|
|
Re: exit() -> heap leaks detected.
By: captainc on Sat, 06 September 2008 13:25
|
|
|
Re: exit() -> heap leaks detected.
By: mirek on Sat, 06 September 2008 08:39
|
Goto Forum:
Current Time: Wed Jun 05 08:50:13 CEST 2024
Total time taken to generate the page: 0.01330 seconds
|