From 637767fec893b43c4e6201a434fa435991ffe543 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 20 Dec 2016 23:15:21 +0100 Subject: [PATCH] Flush nout before inducing crash in assert-abort --- dtool/src/prc/notify.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dtool/src/prc/notify.cxx b/dtool/src/prc/notify.cxx index ebfd19ac42..9a34869923 100644 --- a/dtool/src/prc/notify.cxx +++ b/dtool/src/prc/notify.cxx @@ -405,6 +405,9 @@ assert_failure(const char *expression, int line, // so we can guarantee it has already been constructed. ALIGN_16BYTE ConfigVariableBool assert_abort("assert-abort", false); if (assert_abort) { + // Make sure the error message has been flushed to the output. + nout.flush(); + #ifdef WIN32 // How to trigger an exception in VC++ that offers to take us into // the debugger? abort() doesn't do it. We used to be able to