dwmkerr / dwmkerr/consolecontrol
Error in ConsoleControl.WPF + fix
- Dominant language
- C#
- Stars
- 786
- Forks
- 166
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 1
Description
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 class `ConsoleControl.WPF/ConsoleControl.xaml.cs.
`
Inside your method `public void StartProcess(ProcessStartInfo processStartInfo)` you have the statement `processInterface.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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.