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

Call a Fortran Dll file from another Dll!

lyricx
初學者
544 檢視
I met with the following problem:

I have two Fortran Dll files ("A", "B") and one main Fortran program ("C"), I loaded can access the specific address of one subroutine "a" of A when I run "C" by using Windows API, "loadlibrary" and "getprocaddress". Then I want to call the subroutine "a" from another Dll "B", of course, I passed the handle of "a" through "C" to "B" and gave the interface of "a" in "B".
But when I call "a" in B, I met with the problem :


"
fortrtl: severe (159): Program exception - breakpoint
...
"
It there some problems for my calling methods?
Thank you for your clarifications!
0 積分
2 回應
Steven_L_Intel1
544 檢視

Your DLL calling method, at least as you've described it, seems ok.It's unusual to get that specific error unless you're using an old compiler version and have uninitialized variable checking turned on.

lyricx
初學者
544 檢視
Thanks! Steve!

When I load the Dll from my current Dll instead of main program, it seems work fine.
回覆