C# - Redirect process output of game (UDK) server -


i attempting redirect output of game server process, i'm not receiving of outputs.

here's image of such server looks like.

now, able receive yellow lines, else isn't showing up, neither in console or @ end.

any thoughts?

process p = new process(); p.startinfo.filename = file; p.startinfo.arguments = arguments; p.startinfo.useshellexecute = false; p.startinfo.redirectstandardoutput = true; p.startinfo.redirectstandarderror = true; p.outputdatareceived += new datareceivedeventhandler(outputhandler); p.errordatareceived += new datareceivedeventhandler(errorhandler);  p.start(); p.beginoutputreadline(); p.beginerrorreadline();  private void outputhandler(object sendingprocess, datareceivedeventargs outline) {     ... }  private void errorhandler(object sendingprocess, datareceivedeventargs outline) {     ... } 

you need flush output buffer @ moment outputs something. without flushing, output buffer last until external process exited; makes impossible main application capture output "live"


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -