I'm still trying to solve an issue (described in this thread: Dispatcher.BeginInvoke not being executed in one case) where the delegate is not being executed in a certain situation through Dispatcher.BeginInvoke, but works if the method is being called in the same thread.
Working: NotifyEntityChanged(pNotifyEventItem.ToArray())
Not working: Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new HandleEntityChanged(NotifyEntityChanged), pNotifyEventItem.ToArray());
Question: Is there a way to analyze what's going on between the moment BeginInvoke is being called and the moment, the delegate is being executed?
- Could the instruction be stuck in the execution queue?
- Could there be a silent exception?