windows-ce

Serial Port ReadLine vs ReadExisting or how to read the data from serial port properly.

I am reading data from serial port. The data comes off the scale. I am now using Readline() and getting data dropped even after I removed DiscardInBuffer(). What is the proper way to read the data from the serial port? There are so few examples online that I feel it's like some holy grail that no one has figured out. Any help please? ...

Debug .NET Compact Framework app locally (without emulator or device)

I am currently in the preparation phase for a new project that will be developed with .NET Compact Framework (2.0 or 3.5, we'll see) and will run on a custom Windows CE 6 hardware. There is, however, one thing I can't get to work: Debugging seems to be possible only with a physical device or with the emulator. But when I just start the ...

Ignoring queued mouse events

I have an application written in C# targeting .NET Compact Framework 3.5, running on Windows CE. From time to time, operations lasting for a second or so are being performed on the UI thread. I currently set the Cursor.Current property to indicate that the application is busy, but this does not prevent mouse events from eager users to qu...

SQL CE OutOfMemoryException consuming web service

Hi Guys, We are continually receiving OutOfMemory exceptions when trying to download documents via a web service. We are storing the documents byte array data as part of a serialized mesage object and the original documents are all ~500kb in size. The only other thing in the message's object graph are two string properties for correlat...

Where is Unicode version of atof in Windows Mobile

I have a C++ application where I'm replacing a number of sscanf functions with atoi, atof, etc... for performance reasons. The code is TCHAR based so it's _stscanf getting replaced with _ttoi and _ttof. Except there isn't a _ttof on Windows Mobile 5, or even a _wtof for explicit wide character support. I've ended up using _tcstod inst...

What is the best way to unit test a Windows CE / .NET CF app?

I want to write unit tests for an app running on Windows CE .NET Compact Framework 3.5. Ideally I'd like to deploy them and run them on the device rather than emulated for true testing but if it could also run locally in Visual Studio for speed that would be great. I am mostly writing console apps and don't care about a nice gui but it w...

Process viewer for Win CE devices

Hi, i have to find out a memory leak issue on windows ce 4.0/5.0 device. Is there any tool which shows me the all the processes info, like memory, handle count... So that i can identify the culprit process. If there are any memory leak detection tools for CE 4.0/5.0? Thanks ...

Why the lack of innovation and Silverlight on Windows CE?

A manager asked me to do some quick research on the possibility of doing Silverlight development on Windows CE devices. After 15 minutes I was surprised that: Silverlight for Windows CE seems to be nowhere in sight, with some sites wanting to report it so bad they they are quoting twitter tweets as their source of news, the word "mobi...

monitor cpu usage per thread on windows mobile device

Is is possible to measure CPU per thread on a windows mobile (or CE 5) device programmatically (c++)? If not, is their a utility that will monitor the CPU usage of a process? ...

Installing Windows CE on a x86 embedded device

What is the general procedure to install Windows CE on an embedded device (like the eBox4300? Is there an equivalent of the PXE boot in windows so that I can boot the device over a network, and then install Windows CE on it? I have googled extensively, and the only thing I've gathered is that there is a dos bootloader that if present (p...

Anti-aliased rounded corners in Windows CE 6.0

I'd like to display a smooth rounded rectangle on an ARM device running Windows CE 6.0. I started with RoundRect, but the result had jagged corners, since Windows CE uses GDI and doesn't support GDI+ as Windows Mobile 5+ does. My current provisional solution has been to create a lot of little corner bitmaps, but since the rest of the GU...

How can I disable the input panel for a form?

I've created a Windows CE 5.0 application which runs on a handheld scanner. The scanner has its own (hardware) keypad and almost all input comes from the scanning unit. Unfortunately whenever the text box receiving the scanned characters is focused the input panel appears at the bottom of the screen, blocking almost a third of the scree...

Keeping Mobile Data Synchronized

I'd like a simple method to keep a SQL CE database (on Windows Mobile or CE) synchronized to SQL Server Express. My understanding is that SQL Express does not have replication which is what would normally be used. Are there any other ways to accomplish this? I'm working in C# with .Net 2.0. Thanks! ...

How can I measure the energy consumption of my application on Windows Mobile and Windows CE?

I want to measure the energy consumption of my own application (which I can modify) 3rd party applications (which I can't modify) on Windows CE 5.0 Windows Mobile 5/6 Is there some kind of API for this? If not, can I measure other values which I can use to estimate the energy consumption? I don't need an exact value like 20 m...

Stack overflow from native DLL called from managed application

I'm getting the infamous 0xC00000FD (stack overflow) exception from my application when I call into a native DLL. This is being done from a managed C# application on Windows CE 5 (SH4 processor). Compiling the same DLL for Windows XP using the same managed application and everything works fine (no overflow). The routine in the DLL is ...

Windows CE date-time synchronization with Windows Server 2003.

My application (compact framework) works on Windows CE. The "cold boot" of the device resets the systemtime. Is there any way to synchronize systemtime with Windows Server 2003 (IIS) or using a merge replication on SQL Server 2000. I have a counted column in one of the datatables which counts current time but this row is somehow impossi...

Customizing/Replacing the Windows CE 5.0 Taskbar?

Hey All: I'm currently getting my feet wet with Win CE 5.0 to update some code on an existing platform. We're interested in deploying a custom shell/home screen/application launcher as well and I had a couple questions: 1) We're running the standard CE shell and I'm assuming it can be customized because the source code is made availabl...

Need to implement "expiration date" for beta software C#

I am developing software in C# for a Windows CE device and I have beta software soon to be released and I want it to die after a certain date so the final release will need to be downloaded. The user does not have internet access. I was thinking of using the system date but it can be changed by the user. I can start a timer or a count...

Is the State and Notification Broker API available in Windows CE 6.0

The MSDN documentation indicates that this API is not limited to Windows Mobile, but is available in CE 6.0. The documentation says that I should link against aygshell.lib, but this lib file doesn't contain the correct methods. A search of the WINCE600 tree turns up a reference to k.coredll.dll, but this should be accessible from user ...

SqlCeReplication Conflicts

Is there any connection between error "Failure to write to a message file" and conflicts on Publication side on SQL 2000 server? ...