Hi, I have developed a Fortran dll, created with FTN95 for .Net 2003. I call this dll from unmaneged Visual C++ code (exe) and I have no problems with both implicit (load time dynamic linking) and explicit (runtime) linking. The problems arose when a tried to call the above C++ code (but compiled as dll) from Java using the Java Native Interface and thus to have Java->C->Fortran interoperability. There are no compile or link errors, but I receive the following run-time error: javaw.exe -Application error
The instruction at '0x424a5c64' referenced memory at '0x00000000'. The memory could not be 'written'.
There is no error if I don't call the Fortran dll at all - I mean the Java-C part works. Have you any suggestions about the problem?
My second question is : I saw in FTN95 VisualCInteroperability example that __cdecl calling convention is assumed. How can I use __stdcall when caling Fortran functions from C++? I couldnt find anything about this in the documentation.
Best regards