Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVCFramework.Console: EnableVirtualTerminalProcessing crashes on OS < Windows 10 #140

Closed
raketenwurm69 opened this issue Aug 2, 2018 · 4 comments
Labels
accepted Issue has been accepted and inserted in a future milestone
Milestone

Comments

@raketenwurm69
Copy link

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.

@danieleteti
Copy link
Owner

Did you fixed the problem? Found a better solution?

@danieleteti
Copy link
Owner

It seems to be supported where you are using it:
https://docs.microsoft.com/en-us/windows/console/setconsolemode#requirements

@raketenwurm69
Copy link
Author

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.

@danieleteti danieleteti added this to the 3.2.0-boron milestone May 28, 2020
@danieleteti danieleteti added accepted Issue has been accepted and inserted in a future milestone and removed question labels May 28, 2020
@danieleteti
Copy link
Owner

Fixed in RC8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue has been accepted and inserted in a future milestone
Projects
None yet
Development

No branches or pull requests

2 participants