Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Intercepting console output from another application.

807606Apr 14 2007 — edited Apr 16 2007
Hi, 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2007
Added on Apr 14 2007
3 comments
273 views