CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: MSVCR80 error

  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    MSVCR80 error

    Name:  MSVCR80_error.JPG
Views: 878
Size:  28.4 KB

    The above error message appears whenever I try to run the Debug version of a complex app that I'm building (the Release version runs okay). By "complex" I mean that it has around 40 supporting DLLs.

    Notice that the error message refers to MSVCR80.dll (as distinct from MSVCR80D.dll). This suggests to me that one of my modules is trying to link to the non-Debug CRT.

    Using a hex viewer I've painstakingly looked through the exe and all its DLLs but every one of them seems to specify DebugCRT version 8.50727.42. None of them seems to be referencing a non-Debug CRT (at least, not obviously).

    Is there any way I can find out some further information - e.g. which specific module is trying to link to the non-Debug CRT? Or which version number of the CRT it's looking for? Given that the Release version works, it seems very unlikely that the relevant CRT version isn't present on my PC.

    I've heard about something called Dependency Walker although I've only used it once (very briefly and a long time ago!) Could that (or any other tool) help me to identify precisely which module is looking for MSVCR80.dll?
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: MSVCR80 error

    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  3. #3
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: MSVCR80 error

    Quote Originally Posted by John E View Post
    I've heard about something called Dependency Walker although I've only used it once (very briefly and a long time ago!) Could that (or any other tool) help me to identify precisely which module is looking for MSVCR80.dll?
    The ealier versions of Dependency Walker were installed together with the VS.
    In VS6 it is "...\Microsoft Visual Studio\Common\Tools\DEPENDS.EXE".
    If you don't have it - download from http://www.dependencywalker.com/
    Victor Nijegorodov

  4. #4
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: MSVCR80 error

    Thanks guys. I found Dependency Walker in my VC install directory and it revealed that one of my DLLs was linking to MSVCR80.dll as well as MSVCR80D.dll. At first I found this hard to believe because the embedded manifest was only referencing the DebugCRT. However, I rebuilt the DLL, this time specifying MSVCRT.lib in its list of libraries to ignore. Voila! The app now launches! Generally speaking I only specify ignore libraries if the linker informs me about a conflict. This is the first time I've ever needed to stipulate an ignore library when there was no reported conflict.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured