PC Review


Reply
Thread Tools Rate Thread

Error using TCPClient w/ 3.5 CF and Windows Mobile

 
 
Bob Trabucco
Guest
Posts: n/a
 
      16th Jul 2008

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(Byte[] 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Palm Treo 700wx/Windows Mobile 5/Windows Vista Home Premiumx86/Window Mobile Device Center 6.1/Bluetooth Connection Issues SthrnDixieCwgrl Windows Vista General Discussion 1 4th Sep 2008 08:40 PM
Error using TCPClient w/ 3.5 CF and Windows Mobile Bob Trabucco Microsoft Dot NET Compact Framework 4 21st Jul 2008 03:23 PM
Palm Treo 700wx/Windows Mobile 5/Windows Vista Home Premium x86/Window Mobile Device Center 6.1/Bluetooth Connection Issues* SthrnDixieCwgrl Windows Vista General Discussion 0 7th May 2008 01:27 AM
Tcpclient not working from my mobile! chande.jiang@googlemail.com Microsoft Dot NET Compact Framework 1 21st May 2007 10:07 AM
Can Windows Mobile 5.0 apps run on Windows Mobile 2003 Second Edition Devices? GRT Microsoft Dot NET Compact Framework 1 8th Aug 2005 10:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:50 PM.