Cout is buffered and might not be flushed when the crash happens. Use cerr, which is not buffered, hence displayed immediately.
Cout is buffered and might not be flushed when the crash happens. Use cerr, which is not buffered, hence displayed immediately.