That being said, it doesn't make sense to me that the SyncContext is deadlocking the AE, but that the GUI is still responsive. Could this SyncContext be from somewhere other than my GUI?
On Wed, Jan 25, 2012 at 9:48 PM, Jeffrey Richter <JeffreyR@...> wrote:
Are you in a GUI app and blocking the GUI thread?
--Jeffrey Richter (http://Wintellect.com)
From: PowerThreading@yahoogroups.com [mailto:PowerThreading@yahoogroups.com] On Behalf Of Nathaniel Marler
Sent: Wednesday, January 25, 2012 10:36 PM
It appears related to the SyncContext. The first time through, the SyncContext is not null - but for subsequent calls it's null (not sure yet why that is). By setting the ae's SyncContext = null before calling BeginExecute I can hit all the breaks.
Thanks,
-Nate