dwmkerr / dwmkerr/consolecontrol

Error in ConsoleControl.WPF + fix

Open
#43 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.