• your Windows® embedded community

    eWEEK Windows for Devices - Your Windows Embedded Community

    Windows For Devices

  • home
  • news
  • embedded PCs
  • boards
  • handhelds
  • tablets
  • thin clients
  • enterprise
  • consumer
  • articles

    News

  • Home > News

        Running Windows Mobile drivers through the Application Verifier

        Staff | Date: Apr 13, 2007 | Comments: 1



        • Print PDF
        • Filed Under: News

        A lengthy, highly-technical blog post on Microsoft's developer website explains how to use Microsoft's Application Verifier tool to test Windows Mobile drivers. The Application Verifier tool was designed to help developers assess the stability of their code and identify common programming mistakes, according to Microsoft.




        What's the Application Verifier all about? Microsoft says the tool can detect and pinpoint memory leaks, handle leaks, and leaks in graphics device interface (GDI) objects, and can also detect some forms of heap corruption. Quoting from the Windows Mobile 5 Application Verifier download page...
        Application Verifier attaches to an application and performs tests while the application runs. With the tool, you may be able to diagnose subtle problems with an application that would otherwise be difficult to diagnose on Microsoft Windows CE.

        Each test that Application Verifier runs is referred to as a shim. The tool inserts the shim into the code path between the calling function and the intended target function. A shim loads into the process space, and the kernel redirects calls from other libraries to the shim.

        You might find it helpful to run a shim with a debugger attached to the target device. If a debugger is attached to the target device, the debugger points to the location where the exception occurred, which might be close to the source of the problem identified by the shim.

        For a specified application, you can select the shims that Application Verifier uses to test the application. Examples of tests performed by shims for the tool include tests for memory leaks, tests for the usage of specific application programming interfaces (APIs), and tests for memory corruption.
        In short, the Application Verifier, as its name implies, is generally used for testing "applications" -- so, how do you use it to test low-level driver code? To find out the answer to that $64,000 question, put on your safety glasses and head over to Mike Thompson's lengthy blog posting at MSDN, here.

        Incidentally, a Windows Mobile 6 version of the Application Verifier is available as part of the Windows CE 6.0 test kit. The kit can be downloaded here.



        Related stories:
        • Standalone Windows CE 6.0 test kit available
        • Package enables roll-your-own x86 boot firmware
        • Hardware modeling tool supports Windows CE designs
        • Eclipse releases device development tools
        • Online videos and labs introduce Windows CE 6.0
        • Tiny USB debug tool gains Freescale processor support
        • Visual Studio most widely used IDE, survey says
        • Resources for learning about Windows CE
        • Understanding Windows CE 6's device driver model
        • "Virtual lab" explains Windows CE 6 build, debug
        • Windows CE6 drivers: what you need to know
        • How to develop and test device drivers in Windows CE 5.0
      • Newsletter
      • RSS
      • Twitter
      • Got a Tip?
      • Linux Devices

    most read

    • ARM Windows 8 may nix desktop
    • Autonomous robot's built around a Windows Phone handset
    • Intel ships Cedar Trail Atoms
    • America's first 'WhiteFi' network goes live
    • Tiny module boots Windows Embedded Compact 7 in 800 milliseconds

      WfD showcase archives

      • Mobile Phones
      • PDAs and other handhelds
      • Netbooks
      • Windows tablets, UMPCs, and MIDs
      • Audio/video entertainment devices
      • Thin client terminals and devices
      • Voice over IP devices
      • SPOTlight on .NET Micro Framework (MF)
      • SPOT-light on Microsoft's "SPOT" Technology
      • Other smart devices

  • eWEEK Quick LInks
  • Home
  • Windows & Interoperability
  • Mobile & Wireless Technology
  • Application Development
  • Enterprise Applications
  • Enterprise Networking
  • Desktops & Notebooks
  • Technology Videos
  • ZDE Corporate Site
  • Linux for Devices
  • Microsoft Watch Blog
  • Migration Expert Zone
  • Smarter Technology
  • ASP Free
  • Scripts
  • Tutorialized
  • Technology Resource Library

Site Map

Use of this site is governed by our Terms of Use and Privacy Policy

Copyright ©1996-2010 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. eWEEK and Spencer F. Katt are trademarks of Ziff Davis Enterprise Holdings, Inc.
Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise Inc. is prohibited.