Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9773

call _CrtSetReportMode to avoid hanging debug builds

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Build
    • None

    Description

      The default behavior if an internal assert is hit in the Visual Studio CRTL is to pop up an interactive Abort, Retry, Ignore window. This hangs a build runnings tests forever until someone manually fixes it.

      We can change the default behavior by calling:
      _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
      ...at process startup.
      This can be done in a MONGO_INITIALIZER.

      Attachments

        Activity

          People

            Unassigned Unassigned
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: