- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a VB program that calls a Fortran DLL. It worked fine with VS2003/IVF9.0.
Perhaps unwisely, I upgraded to Visual Studio 2005 and IVF9.1.
The program STILL runs fine if I use the old DLL. However, if I recompile the DLL with IVF9.1, and rerun the program, I get the message "AccessViolationException was unhandled" and "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Is this due to incorrect IVF compiler options?
Thanks for any help on this. If it's not a simple solution I can send more program information.
Phil
Perhaps unwisely, I upgraded to Visual Studio 2005 and IVF9.1.
The program STILL runs fine if I use the old DLL. However, if I recompile the DLL with IVF9.1, and rerun the program, I get the message "AccessViolationException was unhandled" and "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Is this due to incorrect IVF compiler options?
Thanks for any help on this. If it's not a simple solution I can send more program information.
Phil
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't think of anything that changed in the Fortran version. VB is notorious for making incompatible changes across versions.
If you want us to take a look, file an Intel Premier Support request and attach a ZIP of your VS "solution" containing the VB and Fortran projects.
If you want us to take a look, file an Intel Premier Support request and attach a ZIP of your VS "solution" containing the VB and Fortran projects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok thanks. But how do I request this support? I've seached around the site and can't find how to submit it.
Phil
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's the "Tech Support" link on the main forum page, as well as information in the documentation and what you were sent when you registered. Start here. Note that you must register for support - it's free.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This turned out to be that the Fortran DLL, which at one time had been a CVF project, no longer had the "CVF" calling option set. Adding the appropriate directives (STDCALL, REFERENCE, MIXED_STR_LEN_ARG) for the DLL routine fixed the problem.

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