Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Another issue on Calling DLL in VS2008

chermeuse
Beginner
583 Views
I made the DLL loaded successfully on 32bit platform and it works

well. But when the function of that DLL was finished the VS2008 program was quit. Note: the function of that

DLL was just reading and writing some files on the disk.

Thanks
cheng
0 Kudos
4 Replies
Steven_L_Intel1
Employee
583 Views
I think we need some more details. From which language is the DLL called? Which exact Fortran version are you using? How did you declare the Fortran routine in the language that called the DLL routine?
0 Kudos
chermeuse
Beginner
583 Views
the DLL is called from VC++ and the fortran version is V11.0.061.

The DLL routine has been loaded successfully. The main problem is that when the Dll routine has finished, the

whole VC++ program stopped which is not expected.
0 Kudos
anthonyrichards
New Contributor III
583 Views
Is there a STOP command in the DLL?
0 Kudos
Steven_L_Intel1
Employee
583 Views
Please show the declaration of the Fortran routine in the C++ code and the declaration section of the Fortran routine. Please also show the command line options used to build the DLL (you can get this from the Command Line property page).

The most likely problem is that you have a calling mechanism mismatch that corrupts the stack.
0 Kudos
Reply