Memory Leak Problem
- From: babakh99@xxxxxxxxx
- Date: Wed, 18 Jun 2008 13:06:33 -0700 (PDT)
Hey Guys,
Just to start off, this is my first time on this forum, so I aplogize
in advance.
Before I get into my problem, I'm not a programmer, I'm a stats
masters student and have to write some code to
carry out my research, hence the poor programming structure.
That being said, I have, what I believe to be a memory leak problem. I
think I have located the problem, but Im not sure how to fix it.
I have an iterative process that carries one for about a 1000 times.
And each iteration I generated about 700000 random numbers. I have
used the ALLOCATE() function before the iterative techniques, but when
I have tried using the DEALLOCATE() function I get a segmentation
fault. The variable that contains these random numbers is a pointer,
and I have named it "rout." The random numbers come from a subroutine
too. I have given a link to the code (which is not very long at all),
and if someone has any suggestions I am truly greatful, as this
problem has frustrated me for too long now!
http://www.uoguelph.ca/~bhabibza/epidemic.f <- main code
http://www.uoguelph.ca/~bhabibza/subrng.f <- subroutine to
produce random numbers
Thanks in advance,
Babak
.
- Follow-Ups:
- Re: Memory Leak Problem
- From: e p chandler
- Re: Memory Leak Problem
- From: Richard Maine
- Re: Memory Leak Problem
- From: Craig Powers
- Re: Memory Leak Problem
- Prev by Date: Re: a problem in subroutine
- Next by Date: Re: Memory Leak Problem
- Previous by thread: how do I read all the files in a given directory one by one?
- Next by thread: Re: Memory Leak Problem
- Index(es):
Relevant Pages
|