call _CrtSetReportMode to avoid hanging debug builds

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: