October 2008 Entries

Windows CE: Closing Invalid Handles
I pulled some old source code off the shelf recently, dusted it off and started modifying it. Okay, that was my first mistake… I really should have tested it first but that actually would not have helped this time. When the system booted up, it successfully loaded drivers and then when it came to loading Explorer.exe all heck broke loose. Sometime the desktop would appear and other times it would not. When the desktop would appear, GWES would data abort. The system was a mess, and needed to be fixed. ......

Posted On Thursday, October 23, 2008 12:59 PM | Comments (0)

Platform Builder: Finding Something in the Catalog
One of the engineers working with me was adding an SD driver to a platform today. After adding the driver to the BSP and testing it, he found that the driver wouldn’t load because one of the dlls that it was dependent on was missing from the OS. After using dumpbin to determine which dll was missing, we found that SDBUS.dll was the missing dll. To be honest, we knew what we needed to add but wanted to make sure and see if anything else was needed. We started by right clicking on the Catalog to search ......

Posted On Monday, October 13, 2008 11:11 PM | Comments (1)

Platform Builder: Debugging the Boot Hive
One of my engineers was working on a new system today and was having a problem setting up a NAND flash disk. The problem was that while he had made a change to the registry to set up the start address and size of the disk, the changes just were not visible in when the OS ran. We both have a lot of experience developing and building Windows CE systems, so we checked the obvious things: 1. He saved Platform.reg where he made the changes 2. He copied Platform.reg to the _FLATRELEASEDIR 3. When makeimg ......

Posted On Monday, October 13, 2008 10:00 PM | Comments (3)

Windows CE: Programmatically Setting Up an Application to Auto Start
Last week I needed to write an application for my Electrical Engineer to run at boot up to test some hardware changes. He needed to run this test every time the system booted, and needed to have the system reboot often. Of course I don’t expect an EE to be able to set up the test so that it automatically starts when the system boots, and I don’t want to do it for him so I decided to have the application set itself up to run again on the next boot. I have discussed how to set up an application to ......

Posted On Monday, October 13, 2008 9:35 PM | Comments (7)