[fpc-pascal] Halting program without mem leaks
leledumbo_cool at yahoo.co.id
Fri Apr 10 12:29:51 CEST 2009
I need to make a program exited with an exit code other than 0, but without
mem leaks. Currently, Halt seems to return control to calling program (or
OS) without freeing allocated mem. Exit (called from main program) does
freeing, but I can't return any value because main program is considered a
procedure. So, what should I do?
View this message in context: http://www.nabble.com/Halting-program-without-mem-leaks-tp22986071p22986071.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal