dwmkerr / consolecontrol

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
MIT License
726 stars 170 forks source link

WPF control causes exception when process exits #8

Closed joelspadin closed 9 years ago

joelspadin commented 10 years ago

When the processInterface_OnProcessExit event handler is called, it is not running on the UI thread, so accessing ShowDiagnostics fails. That block needs to be wrapped in a RunOnUIDispatcher() call.

xulai1001 commented 10 years ago

I have encountered the same problem~ please please fix this (I used NuGet version of ConsoleControl.WPF, maybe I'll try the source here.

dwmkerr commented 10 years ago

Will fix this for the next release

dwmkerr commented 9 years ago

Fixed in 1.1, release on it's way