Hi… a new user here. FYI, I’m not a russian and I don’t speak russian either. So, please reply it in english (or indonesian if you could).
I’d like to use CRT unit in PascalABC. Unfortunately,I found some problems and errors.
- If I use CRT unit, the IDE refuses to debug my program and forces me to run it without IDE (shift+F9). But if I did it, the compiled program raises runtime error such as this image below. Though I could click ‘Continue’, it’s still annoying. And the most important thing is I couldn’t debug my code.
I found an old issue thread saying we should not use CRT unit because it’s a legacy unit and use the System.Console class instead. But if I put the module in the “uses” section, the IDE complains that it’s unable to find the “System.Console” namespace. If CRT unit is just a wrapper of Console class, then why the IDE is unable to debug it?
An answer on PascalABC’s github said I could simply call the Console class’ methods. But a call to Console’s methods is always producing runtime exception saying ‘the handle is invalid’. So, how to initiate a console window and use to it as Console’s output?
So, if I use the CRT unit then I can’t do debugging, but I can’t use the Console class either. What should I do?
I’m using PascalABC v.3.7.1 (the latest version as I write this issue) on Windows 10.