Asynchronous DataAccess Callback Pattern Issue RRS feed

  • Question

  • I am trying to duplicate the pattern shown here.

    It seems to be going well up until the point where I'm calling "this.Invoke(myDelegate, myDataReader);".  The debugger just stops there and it never seems to get to the delegate's code.  I've put Console.WriteLine() statements in it to see if maybe the debugger just can't get to it because it's attached to another thread but the output is never added to the console window in Visual Studio.  Also, the expected behavior from the delegate method isn't completing.  I have exception handling in the delegate method but it isn't being run either. 
    Monday, June 15, 2009 2:05 PM