-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Error in ConsoleControl.WPF + fix #43
Comments
Hi @Buddha1996 can you let me know the details of the crash you got? I am able to use |
Hello @dwmkerr , I've managed to rebuild the problem (found an older build from me) and gather some information. Beside it, I got another strange and interesting point. General Information: Targetted Framework is .Net Framework 4.7.2, your ConsoleControl.WPF nuget package is in the version 1.2.1 Excuse me, my VS2019 is in german so I will translate it..
It's getting even more curious. As above mentioned, my project is now fine so this has no hurry. :D But what me wonders is the following thing. But at the moment I copied the ConsoleControl.WPF code to my usercontrol and made the changes which had to be done to get this working... it highlighted an error on the above described position in StartProcess. So.. that's why I had opended this issue.. Well if I find a reason why this happens I will let you know! :) Best wishes and have a fine weekend |
Hello, I really appreciate your work and used it in WinForms for a few months. After I switched to WPF, i had the problem that if I used
StartProcess(filename, arguments)
my application always crashed. So I reviewed your code last night and found the problem in the classConsoleControl.WPF/ConsoleControl.xaml.cs.
Inside your method
public void StartProcess(ProcessStartInfo processStartInfo)
you have the statementprocessInterface.StartProcess(processStartInfo);
.I had to change this statement to:
processInterface.StartProcess(processStartInfo.FileName, processStartInfo.Arguments);
After this change ConsoleControl run's fine in my WPF project without any errors.
So if anyone is still searching for a solution - here it is.
Best regards
The text was updated successfully, but these errors were encountered: