Re: Stack corruption and memory leak problems in c++/Fortran application



On Oct 31, 9:26 am, Anndy <see.n...@xxxxxxxxx> wrote:
On Oct 31, 7:47 pm, Anndy <see.n...@xxxxxxxxx> wrote:

there is one more interesting thing what i have noticed. if I put a
WRITE statement in
fortran subroutine, it will take some memory for it.

is this memory is also going on stack?

No - it is heap-allocated memory used by the Fortran I/O library. You
will typically see some memory used for the first I/O on a unit and
subsequent operations will not use more memory.

Steve

.



Relevant Pages