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

OutputDataReceived EVENT NOT FIRING #4

Open
SteliosLL opened this issue Jun 18, 2024 · 0 comments
Open

OutputDataReceived EVENT NOT FIRING #4

SteliosLL opened this issue Jun 18, 2024 · 0 comments

Comments

@SteliosLL
Copy link

SteliosLL commented Jun 18, 2024

What the title says. For some reason its not firing

 var steamCMDConPTY = new SteamCMDConPTY();
 steamCMDConPTY.Arguments = "ARGS"
 steamCMDConPTY.WorkingDirectory = serversInstDir;
 steamCMDConPTY.FilterControlSequences = true;
 steamCMDConPTY.TitleReceived += (sender, data) =>
 {
     if (!String.IsNullOrEmpty(data))
     {
         funcs.InvokeIfRequired(steamCMDoutputFrm.textBox1, () => steamCMDoutputFrm.textBox1.AppendText(data + Environment.NewLine));
     }
 };
 steamCMDConPTY.OutputDataReceived += (sender, data) =>
 {
     if (!String.IsNullOrEmpty(data))
     {
         funcs.InvokeIfRequired(steamCMDoutputFrm.textBox1, () => steamCMDoutputFrm.textBox1.AppendText(data + Environment.NewLine));
     }
 };
 steamCMDConPTY.Exited += (sender, exitCode) =>
 {
     steamCMDProcClear();
     taskEnded();
     refresh();
 };
 steamCMDoutputFrm = new steamCMDout();
 ProcessInfo processInfo;
 methodInvoke(() =>
 {
     steamCMDoutputFrm.Show();
 });
 processInfo = steamCMDConPTY.Start((short)steamCMDoutputFrm.Width, (short)steamCMDoutputFrm.Height);
 steamCMDProc = Process.GetProcessById(processInfo.dwProcessId);
 steamCMDProc.WaitForExit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant