Control.Invoke hangs under heavy stress

There have been reports of Control.Invoke hanging after the method completes.  This was reported by a few customers and we have fixed this.  For your reference: ID: SRX050308605416 KB Article: 896665 The problem stems from some of the errors I describe in my previous post.  IsCompleted will be “true”, but the AsyncWaitHandle will never be set.  The fix will…

3

Is this code threadsafe?

Here is a question for you multithreaded coders out there. After executing Thread1 and Thread2, what are the possible values for “i”?         bool b1 = false;        bool b2 = false;        int i = 0;         private void Thread1() {            b1 = true;            if (b2) {                i = 1;            }        }         private void Thread2()…

1