Subscribe: Anthony Wong's Blog
Added By: Feedage Forager Feedage Grade B rated
Language: English
application  connection  directory exists  directory  exists  gprs connection  gprs  issue  netcf  serial port  windows mobile  windows 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Anthony Wong's Blog

Anthony Wong's Blog

Last Build Date: Mon, 20 Jul 2015 16:04:58 +0000


WebException: Unable to read data from the transport connection

Wed, 21 Nov 2007 14:41:00 +0000

A bug has been found on NETCF v2 and v35 that affects HTTPS web requests from Windows Mobile 6 devices. Andrew has a blog article about the cause of the issue in detail. The following is table listing whether the issue reproduces on a particular platform: OS V2 SP2 7045 V35 RTM 7283 PPC 2003...

How do I determine the application’s root directory?

Mon, 22 Jan 2007 15:31:00 +0000

This is a popular question in the forum. The answer used be part of NETCF FAQ but cannot be easily located these days, so I would include the information here:  An application can determine the directory from which it was run by utilizing Reflection and easily modify it using IO.Path namespace. [C#] using System.Reflection;using System.IO;// This is the full...

Terminating a GPRS connection

Fri, 27 Oct 2006 17:00:00 +0000

Earlier I have posted an article on establishing a GPRS/EVDO/EDGE connection with TcpClient in managed code. The post generated a number of questions from users and one of the common questions was that the code works them, but the connection remains open after the request has been closed. This is the behavior of Connection Manager,...

SerialPort issue transmitting Unicode characters

Tue, 25 Apr 2006 17:04:00 +0000

The managed implementation in .NET Framework 2.0 and .NET Compact Framework 2.0 supports the Encoding property that allows developers to specify the encoding they would use to transmit data over a serial port connection. The property defaults to ASCIIEncoding, which only allows ASCII characters to be transmitted. To transmit non-ASCII Unicode characters over the wire,...

MessageBox issue

Wed, 12 Apr 2006 17:51:00 +0000

On NETCF V2, a message box is automatically closed if MessageBox.Show() is called after a form is closed. This is different behavior from NETCF V1 and Desktop (V1/V2). To work around the issue, simply call Message.Show() on another thread with codes like this: In the Main() function, add the following lines after Application.Run():            Thread t...

Establish a GPRS connection with TcpClient

Mon, 13 Mar 2006 15:55:00 +0000

NETCF's HttpWebRequest automatically sets up a GPRS connection for web requests/web services when a wired/wi-fi connection is not available. Therefore, when you do a web request or consume a web service, developers do not need special coding to handle the GPRS connection case. This does not apply to lower level socket classes like TcpClient and...

Deadlock issue on closing SerialPort

Thu, 02 Mar 2006 21:02:00 +0000

NETCF V2's SerialPort implementation provides four public events for developers. They can add custom event handlers to handle these events. Since these event handlers are executed by ThreadPool threads, if the developer wants to update form fields with the received data, he/she would need to invoke the associated methods on the form to ask the GUI...

Directory.Exists() Issue

Tue, 31 Jan 2006 13:13:00 +0000

On Windows CE 4.X based devices, Directory.Exists() treats path names ending with a slash "\" differently. As an example, Directory.Exists("\\temp") will return true if the "temp" directory exists. However, the following call will return false even though the directory exists: Directory.Exists("\\temp\\") On Windows Mobile 5.0 devices, NETCF's behavior is consistent with Desktop's; that is, Directory.Exists()...

Unhandled exception with serial port issue

Mon, 16 Jan 2006 14:13:00 +0000

When an exception is unhandled in an application, an unhandled exception dialog is shown to inform the user of the issue. Because of an issue in some serial port drivers, when an unhandled exception occurs and the user exits the application, the application is not actually closed if a serial port instance is open. However, this...

Bitmap.Save() Method

Wed, 30 Nov 2005 20:31:00 +0000

On pre-Windows Mobile 5.0 devices, because the image encoders are not available in the OS, NETCF V2 does not support saving bitmaps into Gif, Jpeg or Png formats; only the Bmp format is supported. A NotSupportedException is thrown when you call the method on Pocket PC 2003 devices. All four file formats are supported in Windows Mobile...