mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
Fixed the last two errors in Cosmos.VS.WindowsPackage no more debug crashing yay :)
This commit is contained in:
parent
ba915c87ff
commit
ff57733731
1 changed files with 14 additions and 9 deletions
|
|
@ -88,13 +88,8 @@ namespace Cosmos.VS.Windows {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void UpdateWindow(Type aWindowType, string aTag, byte[] aData) {
|
protected void UpdateWindow(Type aWindowType, string aTag, byte[] aData) {
|
||||||
System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(DispatcherPriority.Normal,
|
var xWindow = FindWindow(aWindowType);
|
||||||
(Action)delegate()
|
xWindow.UserControl.Update(aTag, aData);
|
||||||
{
|
|
||||||
var xWindow = FindWindow(aWindowType);
|
|
||||||
xWindow.UserControl.Update(aTag, aData);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ShowWindowAssembly(object aCommand, EventArgs e) {
|
private void ShowWindowAssembly(object aCommand, EventArgs e) {
|
||||||
|
|
@ -226,11 +221,21 @@ namespace Cosmos.VS.Windows {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Debugger2Windows.PongVSIP:
|
case Debugger2Windows.PongVSIP:
|
||||||
UpdateWindow(typeof(InternalTW), null, Encoding.UTF8.GetBytes("Pong from VSIP"));
|
System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(DispatcherPriority.Normal,
|
||||||
|
(Action)delegate()
|
||||||
|
{
|
||||||
|
UpdateWindow(typeof(InternalTW), null, Encoding.UTF8.GetBytes("Pong from VSIP"));
|
||||||
|
}
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Debugger2Windows.PongDebugStub:
|
case Debugger2Windows.PongDebugStub:
|
||||||
UpdateWindow(typeof(InternalTW), null, Encoding.UTF8.GetBytes("Pong from DebugStub"));
|
System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(DispatcherPriority.Normal,
|
||||||
|
(Action)delegate()
|
||||||
|
{
|
||||||
|
UpdateWindow(typeof(InternalTW), null, Encoding.UTF8.GetBytes("Pong from DebugStub"));
|
||||||
|
}
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Debugger2Windows.OutputPane:
|
case Debugger2Windows.OutputPane:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue