Locked Throwing error when socket error occurs

  • 2012年2月26日 18:56
     
     

    Everytime I throw an error from my server class, when a socket error occurs, my application crashes/ just closes out!  I'm not sure why this happens, I have re-thrown erros from classes before and this never happened.

    ***Edit

    The same thing occurs when I display a messagebox with the error message, the application just closes out!

すべての返信

  • 2012年2月26日 19:12
     
     

    Could the cause of this be that since I am using asynchronous sockets that the threads are crossing.  Since first Socket.BeginReceive is called from OnAccept() callback and I am rethrowing the errors and they are moving up the callbacks?