Re: memory leak after calling a fortran function
- From: Anndy <see.nits@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 08:44:45 -0700
On Oct 31, 6:52 pm, Steve Lionel <steve.lio...@xxxxxxxxx> wrote:
On Oct 31, 6:25 am, Devendra <dgat...@xxxxxxxxx> wrote:
Some memory constantly gets consumed by the process whenever I call
fortran subroutine.
When I removed the write statement, application is not leaking any
memory. Means .. write statement is giving some problem. But how it
could be ????
I see no evidence of a memory leak. The Fortran run-time system
allocates some memory when you open a file, and that file stays open
until you close it or the program exits. Your memory checker does not
recognize this and assumes it is only C code.
Now, if you called this routine 10 times and lost 120K of memory on
each call, that would suggest a problem.
Steve
that write statement is getting used for writing some text on
console.
if i am understanding it correctly.
I tried with PRINT, it takes memory only for the first call, after it
works for free.
Anndy
.
- References:
- memory leak after calling a fortran function
- From: Devendra
- Re: memory leak after calling a fortran function
- From: Steve Lionel
- memory leak after calling a fortran function
- Prev by Date: Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- Next by Date: Re: opening char variable data file
- Previous by thread: Re: memory leak after calling a fortran function
- Index(es):
Relevant Pages
|