Re: [fpc-pascal] Halting program without mem leaks

2009-04-10 Thread Vincent Snijders
leledumbo schreef: 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 progr

Re: [fpc-pascal] Halting program without mem leaks

2009-04-10 Thread Marco van de Voort
In our previous episode, leledumbo said: > > 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 retu

[fpc-pascal] Halting program without mem leaks

2009-04-10 Thread leledumbo
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 p