BeginInvoke

jvcoach23

Member
Joined
Feb 21, 2005
Messages
17
Location
IL
Programming Experience
1-3
I'm using the BeginInoke to return a sqldatareader from a secondary thread back to the ui. it is working great.. unless the database I'm trying to connect to is offline or the server isn't availble. So I was going to wrap the BeginInvoke in a try and catch.. however

try
BeginInvoke(callit)
catch ex as exception
debug...
end try

the catch doesn't catch the exception.. what do I need to put in there so the program doesn't bomb out.. I'd like to put a nice message out to the debug.writeline for my development cycle..

thanks
shannon
 
Top Bottom