- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I know there are several articles around on this topic but my question is a little bit different.
I have some existing Fortran codes that I've been able to compile into DLL's and successfully [DllImport] and call in my C# code. All works fine on my development machine. In the debugger and out, release and debug, all are fine.
I have some colleagues that would like to use the software now. One of them it works fine for. He just so happens to have Composer 2011 installed just like I do. He is running the compiled binaries I gave him though. The other colleague does not have the compiler. The C# code would error with:
"Unable to load DLL 'yourfotran.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
when it came time to the [DllImport]. Eventually realized that he needed the run-time redistributable installed. That got us past that issue but...
Now we are getting:
"An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"
I ended up putting some debugging statements in there to have him run it again and confirmed that the C# part is in fact running as a 32-bit process, just like on my machine. I believe the Fortran Dlls are also 32 bit.
I create a simple Fortran-only console application with the source from the same Fortran library and it ran without an issue so I believe the run-time redistributable is ok.
At this point I'm totally out of ideas.
I would love to hear any help or suggestions anyone has.
Thank you,
Bill
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고