![]() |
|
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Error using TCPClient w/ 3.5 CF and Windows Mobile
Hello all.
I have a application written in the 3.5 Compact Framework running on Windows Mobile devices. VB.NET VS 2008. The application communicates with our server using the System.Net.Sockets.TcpClient class This code used to communicate works flawlessly in our regular windows application. It also works wonderfully when the device (Treo 700 is my test case) is plugged into a PC with the USB cable. When not plugged in and using the internet over the cell phone it will occasionally crash with: ObjectDisposedException at System.Threading.Timer.throwIfDisposed() at System.Threading.Timer.Change(UInt32 dueTime, UInt32 period) at System.Threading.Timer.Change(Int32 dueTime, Int32 period) at System.Net.HttpWebRequest.startReadWriteTimer() at System.Net.HttpWebRequest.ConnectionClient.Read(By te[] data, Int32 offset, Int32 length) at System.Net.HttpReadStream.NetworkRead(Byte[] data, Int32 offset, Int32 length) at System.Net.ChunkedReadStream.fillBuffer() at System.Net.ChunkedReadStream.getLine() at System.Net.ChunkedReadStream.doRead(Byte[] data, Int32 offset, Int32 length) at System.Net.HttpReadStream.ReadToDrain(Byte[] buffer, Int32 offset, Int32 length) at System.Net.HttpReadStream.doClose() at System.Net.HttpReadStream.Finalize() It may work great a few times - then crash like this. This error appears untrappable - all my code is Try/Catched. We don't believe this was a issue in previous versions of the framework but this is our first release using 2008/3.5 so it's hard to say for sure. Anyone out there have a clue as to what may be causing this and what steps I can take to trap the error and/or prevent it? Thanks so much in advance. Bob |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|