- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a Fortran project in VS2005 that runs fine in Release mode but when I try to debug itI get "Unable to load DLL 'FCCmod.dll': A dynamic link library (DLL) initialization routine failed (Exception from HRESULT: 0x8007045A)." I've run Depend.exe on FCCmod.dll and all the dependencies are found. Any suggestions on what's going wrong?
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you have a DLL initialization routine? (DllMain or something like that.) Can you start the program without debugging?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have no idea what's going on. The code will debug just fine on 2 of my 3 computers. On the one where it won't I just uninstalled and reinstalled VS2005 and IVF but it made no difference.Guess I'll just debug on a diferent machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It might be a DLL initialization routine in one of the dependent DLLs. It's not a problem I've seen before, though, and I have no clue why it would affect debugging only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the problem. I had an old version of libifcoremdd.dll in c:windowssystem32 that was getting picked up before the correct version in C:Program FilesIntelCompilerFortran9.1IA32Bin. Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Interesting. I'll have to remember that for the future. The compiler install doesn't put the DLL there but I can well imagine someone doing so manually.

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