Closed ductai230894 closed 5 years ago
The OnAcceptCallback will executed on different threads than your webClient's DownloadString. Therefore you can't catch exceptions there.
What kind of exceptions are being thrown in the OnAcceptCallback?
thank you, I understood
I tried throw exception inside the OnAcceptCallback method (HttpToSocks5Proxy class 101), the error always occurs, but cannot be processed inside the try catch block ..
Create an error : Edit the method OnAcceptCallback throw new exception ("test); Run test