#1 2024-11-04 10:52:18

VojkoCendak
Member
From: Celje Slovenia
Registered: 2012-09-02
Posts: 93

ConsoleShowFatalException(E) doesn't wait for enter key

when exeption occurs, it just terminates with no wait Enter key.
Test it in eaxample C:\dev\synopse\GitHub\mORMot2\ex\http-server-files\httpServerFiles.dproj

thank you

Offline

#2 2024-11-04 11:30:59

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: ConsoleShowFatalException(E) doesn't wait for enter key

It only wait for the Enter key on Windows, AFAIR.
This is what is documented, and I guess - expected on a POSIX command line.

Offline

#3 2024-11-04 12:55:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: ConsoleShowFatalException(E) doesn't wait for enter key

Also note that ConsoleWaitForEnterKey - therefore ConsoleShowFatalException - only makes sense from the MAIN thread of the application.
In a sub-thread, on Windows, it waits for WM_QUIT.
By design, it is impossible and make no sense to wait for a keyboard event in a sub-thread.

Offline

Board footer

Powered by FluxBB