B
Barry Anderberg
I am using asynch sockets and so I call BeginReceive and then in my
callback function I have certain events that would cause me to want to
throw an exception.
The problem of course is that the callback function is executing in a
separate thread from the main thread so when I throw the exception
it's apparently impossible to handle it in the calling thread (ie the
thread that called BeginReceive(..).
Is there a way to throw an exception to another thread like this?
Thanks,
Barry
callback function I have certain events that would cause me to want to
throw an exception.
The problem of course is that the callback function is executing in a
separate thread from the main thread so when I throw the exception
it's apparently impossible to handle it in the calling thread (ie the
thread that called BeginReceive(..).
Is there a way to throw an exception to another thread like this?
Thanks,
Barry