ObjectDisposedException on WebRequest

D

DanielG

Hi,

We are experiencing an intermittent problem that is causing our
CompactFramework application to crash.

Every 30 seconds we poll a web server asynchronously using
HttpWebRequest.BeginGetResponse(). Periodically (up to days apart),
the app will crash out to the generic unhandled exception screen.
Clicking details it says:

HelloWorld.exe
ObjectDisposedException
System.Net.Sockets.Socket

Socket::throwIfDisposed+0x19
Socket::poll+0x6
Connection::SendRequest+0x26
WorkItem::doWork+0x36
Timer::ring+0x59

This is despite putting error handling and logging in every method.
The internet connection is over GPRS so it's possible that it's not
100% reliable.

Suspecting that this might be the "Race Condition:
ObjectDisposedException when exiting async client" issue resolved in
the SP3 for Compact Framework
[http://blogs.msdn.com/onoj/articles/178293.aspx] we downloaded and
installed the beta. Still no joy.

If anyone has any suggestions as to how to resolve this problem, they
would be greatly appreciated.

Cheers
 
G

Guest

I am experiencing exactly the same problem...have you resolved the issue or
come up with a work round.

Glynn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top