ObjectDisposedException after coming back from hibernate

  • Thread starter Thread starter Jon Skeet [C# MVP]
  • Start date Start date
J

Jon Skeet [C# MVP]

Our app has blown up with the following exception (despite catch
clauses in all "our" threads) when resuming from hibernation. I assume
(from the stacktrace) that it was in the middle of sending a request
when it went wrong.

Any suggestions as to how to rectify this?


Client.exe
ObjectDisposedException
System.Net.Sockets.Socket

Socket::throwIfDisposed+0x19
Socket::Poll+0x6
Connection::sendRequest+0x26
WorkItem::doWork+0x36
Timer::ring+0x59
 
I have a similar error from time to time in my app that uses UDP comms. Sure would like to know the solution

Thanks.
 
Jon Skeet said:
Our app has blown up with the following exception (despite catch
clauses in all "our" threads) when resuming from hibernation. I assume
(from the stacktrace) that it was in the middle of sending a request
when it went wrong.

Hmm... we've had it another couple of times today, with no hibernation
involved, so it looks like that bit was a red herring. Still no idea
why it's happened though.
 
Back
Top