M
Mike V
I have been struggling over this problem for the past few days. Here is
what's happening:
1) My main UI thread creates a ListView control.
2) My main UI thread asynchronously invokes a delegate
3) The Asynchronous Delegate function calls ListView.Invoke() to attempt to
invoke *another* delegate
4) ListView.Invoke() hangs. Its call stack shows it hanging at the
System.Threading.WaitHandle.WaitOne() method. Presumably, there is some
sort of deadlock, but what could be causing this?? I've tried with/without
ReaderWriterLocks, Sleep statements to eliminate race conditions, and they
make no difference in avoiding the deadlock.
what's happening:
1) My main UI thread creates a ListView control.
2) My main UI thread asynchronously invokes a delegate
3) The Asynchronous Delegate function calls ListView.Invoke() to attempt to
invoke *another* delegate
4) ListView.Invoke() hangs. Its call stack shows it hanging at the
System.Threading.WaitHandle.WaitOne() method. Presumably, there is some
sort of deadlock, but what could be causing this?? I've tried with/without
ReaderWriterLocks, Sleep statements to eliminate race conditions, and they
make no difference in avoiding the deadlock.