Neil Carson writes:
<<<
However if you modify your
main program to declare foo as an array -- even a size 1 array -- then it leaks
memory; the final subroutine is never called.
>>>
That is probably because variables in a main program implicitly have the SAVE
attribute, and variables with the SAVE attribute are never finalised by
"going-out-of-scope".
Cheers,
--
................................Malcolm Cohen, Nihon NAG, Tokyo.
|