Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Also unable to load DLL - different issue

asklingler
Beginner
701 Views
Hi all.
I've got a Visual Studio solution containing 2 projects: one C# front end and one Fortran DLL for computations.
It compiles and runs fine on our machine with Visual Studio 2005.
On a machine with VS 2008, however, compilation is fine but when I attempt to run I get the following error:
An unhandled exception of type 'System.DllNotFoundException' occurred in PPP1.exe
Additional information: Unable to load DLL 'PPP_DLL.dll': Invalid access to memory location. (Exception from HRESULT: 0x800703E6)
I have done some web searching and found that with the VS2005 to VS2008 transition, Data Execution Prevention is enabled by default -- the C# compiler being a particular offender in this regard -- and that some older DLLs cannot be run without changing the /NXCOMPAT flag, producing errors like the one above. I have tried the standard method of doing this (to wit, "editbin /NXCOMPAT:NO ") and gotten no errors from the editbin call but no success in fixing this problem.
Anybody know how to fix this? Anybody know if I'm on the wrong track? Anybody even vaguely familiar with this problem?
thanks
- andrew
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
701 Views
Much more likely cause is that you don't have Intel run-time libraries installed on the target machine. You can verify that by examining the .dll with Dependency Walker. Alternatively, you can statically bind the run-time library -- change the setting at Project properties/Fortran/Libraries/Runtime library.
0 Kudos
asklingler
Beginner
701 Views
Thanks, but this does not seem to solve my problem.
I have tried all settings of the run-time library in the drop-down box at
Project properties/Fortran/Libraries/Runtime library
without any success.
I've also installed the run-time libraries from the link you gave. This did not help either. I did notice that these libraries seemed intended for end users. I am compiling (in both Debug and Release) using Visual Studio and a full installed integrated Intel Fortran compiler. Not sure I needed the run-time library on top of that.
Can you explain why the lack of run-time libraries might produce the "Invalid access to memory location" error?
- andrew
0 Kudos
Reply