For a few years I have been developing VB applications which call routines from a FORTRAN DLL which is a seperate project in the same solution. I had not worked on one of these apps for a year until I recently when I started developing another similiar app. When I tried to run the solution in debug, the GUI displays fine and allows me to enter data. However, when I ask the program to perform a calculation which requires a routine in the DLL I receive the error "Unable to load DLL". The solution places the FORTRAN DLL in the same directory as the executable.
I went back to run of the other apps I have developed and released and found that I am having the same problem. When I rebuild it and try to run in debug inside of VS or simply from the executable in the directory I get the "Unable to load DLL" error. When I try to run the rebuilt release executable I get the error "Attempted to read or write protected memory". The release executable and dll that I built in March 2011 works fine.
I am using Intel(R) Visual Fortran Composer XE 2011 Update 11 Integration for Microsoft Visual Studio* 2008, 12.1.3534.2008 on a Windows XP x64 sp2 machine, and developing 32-bit solutions.
Suggestions?
Mike
連結已複製
