- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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