分析Dispatcher.BeginInvoke的执行情况

时间:2014-08-20 12:39:18

标签: c# multithreading

我仍在尝试解决一个问题(在此主题中描述:Dispatcher.BeginInvoke not being executed in one case),其中委托在某种情况下没有通过Dispatcher.BeginInvoke执行,但是如果调用该方法则有效在同一个主题中。

工作:NotifyEntityChanged(pNotifyEventItem.ToArray())
不工作:Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new HandleEntityChanged(NotifyEntityChanged), pNotifyEventItem.ToArray());

问题:有没有办法分析在调用BeginInvoke的那一刻和当前正在执行委托的情况之间发生了什么?

  • 指令可能卡在执行队列中吗?
  • 会出现无声的异常吗?

0 个答案:

没有答案
相关问题