danieleteti / delphimvcframework

DMVCFramework (for short) is a popular and powerful framework for WEB API in Delphi. Supports RESTful and JSON-RPC WEB APIs development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MVCFramework.Console: EnableVirtualTerminalProcessing crashes on OS < Windows 10

raketenwurm69 opened this issue · comments

When I include MVCFramework.Console.pas in a unit it calls EnableVirtualTerminalProcessing in initialization section where it calls SetConsoleMode. On Windows Server 2011 and 2012 the application closes itself with no error, but leaving an entry in the event log "Error in KERNELBASE.dll".

Possible solution: Check if OS >= Windows 10 before calling SetConsoleMode and output an error message in the console window.

Did you fixed the problem? Found a better solution?

As I am using console mode only during development and not in the final product, I decided to not use the colored console output in my DMVC-Server anymore.

Fixed in RC8