Re: Stack corruption and memory leak problems in c++/Fortran application
- From: Anndy <see.nits@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 14:47:40 -0000
On Oct 31, 7:12 pm, Louis Krupp <lkr...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Anndy wrote:
<snip>
for more clarity i am attaching signature of fortran subroutine and
calling of it from C++.
C++ calling fortran Subroutine :
========================================================================
Fortran Subroutine :
subroutine func(mcode,nbtarb,nufen,nuws,error)
character*(*) mcode
integer error,nufen,nuws,nbtarb
Calling From C++ :
void SomeFunc(void){
int type_obj = 1, ibid = 0, nuws = 1, nufen = 1, ierr = 0;
char code_menu[] = {"ANNDY"};
FUNC(code_menu, &ibid, &nufen, &nuws, &ierr, strlen(code_menu));
}
=============================================================================
How is FUNC declared?
Louis
declaration of FUNC is : void FUNC(char *menu,MY_INT *ibid,MY_INT
*nufen,MY_INT *nuws,MY_INT *ierr, size_t length);
as you pointed out this may be is one of the source for problem. i'll
check this and get back to you guys.
Anndy
.
- Follow-Ups:
- References:
- Stack corruption and memory leak problems in c++/Fortran application
- From: Anndy
- Re: Stack corruption and memory leak problems in c++/Fortran application
- From: Colin Watters
- Re: Stack corruption and memory leak problems in c++/Fortran application
- From: Anndy
- Re: Stack corruption and memory leak problems in c++/Fortran application
- From: Louis Krupp
- Stack corruption and memory leak problems in c++/Fortran application
- Prev by Date: Re: Stack corruption and memory leak problems in c++/Fortran application
- Next by Date: Re: 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
|