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 not Firing #2

Open
MypowerHD opened this issue Mar 14, 2022 · 1 comment
Open

OutputDataReceived not Firing #2

MypowerHD opened this issue Mar 14, 2022 · 1 comment

Comments

@MypowerHD
Copy link

Version = .Net 6
VSS = VSS22

Hi there,
We've been stuck with the problem for a few days now that the SteamCMD doesn't flush its buffer after the end of the line, but whenever the standard buffer of 4096 is full. This behavior is standard when an application is not interactive.

Even with the correct ConPTY from Microsoft, he still detected the application as non-interactive for inexplicable reasons. This is where your lib comes into play, we just wanted to see if it works with your lib now, but here I get no output at all, attached is a small POC.

Unfortunately, I'm currently too tired to get down to it, maybe you'll find something out in time.

https://github.com/MypowerHD/Poc.SteamCMD---ConPTY

Greetings Timo.

@BattlefieldDuck
Copy link
Member

I had viewed your Poc.SteamCMD---ConPTY repo, your program stop immediately after Console.WriteLine("Hello, World!");.

You need to add

Process p = Process.GetProcessById(processInfo.dwProcessId);
p.WaitForExit();

after the steamCMDConPTY.Start();

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

2 participants