- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a STOP command in the DLL?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
The most likely problem is that you have a calling mechanism mismatch that corrupts the stack.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page