• Anthony Wong's Blog

    WebException: Unable to read data from the transport connection

    • 0 Comments
    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...
  • Anthony Wong's Blog

    How do I determine the application's root directory?

    • 0 Comments
    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...
  • Anthony Wong's Blog

    Terminating a GPRS connection

    • 0 Comments
    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...
  • Anthony Wong's Blog

    SerialPort issue transmitting Unicode characters

    • 1 Comments
    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...
  • Anthony Wong's Blog

    MessageBox issue

    • 0 Comments
    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...
  • Anthony Wong's Blog

    Establish a GPRS connection with TcpClient

    • 3 Comments
    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...
  • Anthony Wong's Blog

    Deadlock issue on closing SerialPort

    • 1 Comments
    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...
  • Anthony Wong's Blog

    Directory.Exists() Issue

    • 0 Comments
    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...
  • Anthony Wong's Blog

    Unhandled exception with serial port issue

    • 1 Comments
    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...
  • Anthony Wong's Blog

    Bitmap.Save() Method

    • 0 Comments
    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...
  • Anthony Wong's Blog

    Multicast Sockets Sharing a Port

    • 0 Comments
    Because multicasting is a one to many communication, there maybe some occasions when you would like multiple UdpClient instances on the same machine to receive data from the same multicast group and port. To do this, you would need to set the SO_REUSEADDR...
  • Anthony Wong's Blog

    Splash Screen on Pocket PC

    • 1 Comments
    Sometimes it would be nice to add a splash screen to your Pocket PC application. You can show your company logo, product title, product logo as well as other information on the splash screen. On .NET Framework, you may use two Application.Run() calls...
  • Anthony Wong's Blog

    Power Notifications and Serial Port

    • 3 Comments
    NETCF V2 adds the support of a managed SerialPort class to allow developers to directly access the serial ports on mobile devices, enabling communication with GPS, bar code readers, or other mobile devices within managed code. These peripherals may be...
  • Anthony Wong's Blog

    Scrolling with Dial Pad on SmartPhone

    • 2 Comments
    NETCF V2 adds the AutoScroll feature, showing scrollbars on a form when one of its controls is outside the visible region of the form. To enable auto scrolling, simply set the AutoScroll property of the form to true. To change the visible region of the...
  • Anthony Wong's Blog

    HttpWebRequest: Timeout and ReadWriteTimeout

    • 0 Comments
    In NETCF V1, when a HttpWebRequest fails due to a timeout, a WebException is thrown with this exception message: System.Net.WebException: The operation has timed-out. This means that the request cannot be completed within the timeout value, which...
  • Anthony Wong's Blog

    First Blog

    • 0 Comments
    Hello everyone. Thank you for visiting my blog. My name is Anthony Wong. I am working for the .NET Compact Framework group at Microsoft in Redmond, WA. My job duties include quality assurance for the PMEs in core networking (System.Net), GUI (System...
Page 1 of 1 (16 items)