Re: Stack corruption and memory leak problems in c++/Fortran application
- From: LR <lruss@xxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 07:32:42 -0400
Anndy wrote:
Hello Folks,
I am facing problem in a Porting project(HP-Unix->Windows XP(64 bit))
where there are lots of C++->Fortran and Fortran->C++ calls.
There are some thousands of files including FORTRAN and C++ code.
After performing few operation which involves lot of FORTRAN->C++ and C
++->FORTRAN calling, application gives stack overflow error or behaves
unexpectedly.
Is it possible that you have a recursive routine that isn't behaving well?
one more thing which i have noticed is, whenever i am making a call to
a FORTRAN function there is a increase in
application memory by 4Bytes.
On the stack? Do you suspect this change signifies something? What?
compiler c++ : MS Visual Studio 2005 / Compiling for 64 bit
compiler FORTRAN :Intel Fortran Compiler 9.1
Some environment specific advice. Have you tried building a debug version and seeing what the call stack looks like when the app crashes?
Can anyone please help in mentioning the possible problem areas ...
I'd like to reiterate glen herrmannsfeldt's advice that you verify that you're calling with the parameters you think you're calling with.
LR
.
- Follow-Ups:
- References:
- Prev by Date: Re: Stack corruption and memory leak problems in c++/Fortran application
- Next by Date: Adding a column to an existing output file
- Previous by thread: Re: Stack corruption and memory leak problems in c++/Fortran application
- Next by thread: Re: Stack corruption and memory leak problems in c++/Fortran application
- Index(es):
Relevant Pages
|