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



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
.



Relevant Pages