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

Stopping process throws error #20

Open
longlostbro opened this issue Jul 9, 2015 · 1 comment
Open

Stopping process throws error #20

longlostbro opened this issue Jul 9, 2015 · 1 comment

Comments

@longlostbro
Copy link

calling consoleControl.StopProcess(); from a wpf button or stopping the process from within the process causes an error in the following function.

<ConsoleControl.xaml.cs>
public bool ShowDiagnostics
{
get { return (bool)GetValue(ShowDiagnosticsProperty); }
set { SetValue(ShowDiagnosticsProperty, value); }
}

An unhandled exception of type 'System.InvalidOperationException' occurred in WindowsBase.dll

Additional information: The calling thread cannot access this object because a different thread owns it."

@AtryFox
Copy link

AtryFox commented Aug 18, 2015

Very nice library, but i'm having the same issue.

foreach(ConsoleControl.ConsoleControl console in cmds.Keys) {
    if (console.IsProcessRunning) console.StopProcess();
    // some console.StartProcess code...
}

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