Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28591 Discussions

A window error dialog occured when I call a Fortran Dll, what is the problem?

lyricx
Beginner
276 Views
I build a Fortran Dll file, and load it from a main fortran executable file,
In main Fortran executable file, I used "Use Ifwin", which makes
Loading dll possible, than I also successfully get the address of the subroutine I want to call from this dll file.
&n bsp;
I found these above loading .dll file and getting adress were both successful, but once I call the subroutine from main executable file, an window error occured, see the attachment for your reference.
Because in this error dialogue, there are no enough infomation to provide me to locate the problem. Could someone give me some suggestions on this problem?
Thank U very much!

&nb sp;
~~~~~~~~
lyricx
0 Kudos
1 Reply
Steven_L_Intel1
Employee
276 Views

That's the generic message you get when there is an unhandled error. Did you not get a traceback from Fortran? (Perhaps in a window hidden behind another.)

I suggest building and running under the debugger and see what it tells you. Given what you say, I'd guess that you incorrectly called the DLL routine and got an access violation.

0 Kudos
Reply