Intercepting console output from another application.
807606Apr 14 2007 — edited Apr 16 2007Hi, I've been working on a program to intercept output from a console application (Source Dedicated Server for Windows) and it does its job, but after it gets to a certain point of booting the server (after intercepting many lines of text), the server application (not my program) crashes with this error:
Engine Error:
CTextConsoleWin32::GetLine: !GetNumberOfConsoleInputEvents
One other observation is that the server console window is still open, there just is no text in it because my program intercepted all its intended output. I'm assuming that the server console is checking to make sure that the number of lines that were outputted to it are being displayed in it, in which case it would find a difference and throw that error.
I know this is a borderline java question, but is there a workaround for this? Like for instance, is there a way to just read the intended output for the server console instead of intercepting it completely?
Thanks in advance.