Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6754862

jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • tools
    • b44
    • x86
    • windows_xp
    • Not verified

      % cat -n jdk/src/windows/bin/java_md.c

        [...]
          44 #define CRT_DLL "msvcr71.dll"
        [...]
         210 if (GetJREPath(crtpath, MAXPATHLEN)) {
         211 (void)JLI_StrCat(crtpath, "\\bin\\" CRT_DLL); /* Add crt dll */
         212 JLI_TraceLauncher("CRT path is %s\n", crtpath);
         213 if (_access(crtpath, 0) == 0) {
         214 if (LoadLibrary(crtpath) == 0) {
         215 ReportErrorMessage(DLL_ERROR4, crtpath);
         216 return JNI_FALSE;
         217 }
         218 }
         219 }



      This needs to be modified to look for the correct msvcr??.dll based on
      the version of Visual Studio doing the product build.

      VS2003=msvcr71.dll
      VS2005=msvcr80.dll
      VS2008=msvcr90.dll

      Reference: jdk/make/common/Defs-windows.gmk

      Attempts to load a mismatched msvcr??.dll will fail and result in a 'R6034'
      pop-up window (see attached screen grab wrong_RTL_popup.jpg).

            tbell Tim Bell
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: