Microsoft KB Archive/895421

= You may receive the &quot;Debugger swap error&quot; error message when you use eMbedded Visual C++ 4.0 to debug an application that is running on a device that is running Windows CE =

Article ID: 895421

Article Last Modified on 3/14/2007

-

APPLIES TO


 * Microsoft eMbedded Visual C++ 4.0
 * Microsoft Windows CE Platform Builder 4.0
 * Microsoft Windows CE Platform Builder 4.1
 * Microsoft Windows CE Platform Builder 4.2
 * Microsoft Windows CE 5.0

-





SYMPTOMS
When you use Microsoft eMbedded Visual C++ 4.0 to debug an application that is running on a device that is running Microsoft Windows CE, you may receive the following error message:

Debugger Swap Error

eVC cannot locate a debugger able to debug the attached device. The debugging session cannot begin.



CAUSE
This behavior occurs because eMbedded Visual C++ 4.0 only recognizes a subset of the processor types that the Windows CE operating system supports. If the device returns a processor type that eMbedded Visual C++ 4.0 does not recognize, eMbedded Visual C++ 4.0 cannot locate the correct debugger for the device.



RESOLUTION
To resolve this behavior, the device manufacturer must modify the OEMInit function to return a processor type that eMbedded Visual C++ 4.0 recognizes. For example, the device manufacturer must add lines of code that are similar to the following to the OEMInit function. extern DWORD CEProcessorType; CEProcessorType = PROCESSOR_STRONGARM; eMbedded Visual C++ 4.0 currently recognizes the following processor types:
 * PROCESSOR_ARM720
 * PROCESSOR_ARM820
 * PROCESSOR_ARM920
 * PROCESSOR_STRONGARM



STATUS
This behavior is by design.



MORE INFORMATION
For more information, visit the following Microsoft Developer Network (MSDN) Web sites:

Microsoft Windows CE .NET 4.2: ARM Microprocessor

http://msdn2.microsoft.com/en-us/library/ms898156.aspx

Platform Builder for Microsoft Windows CE 5.0: ARM Microprocessor

http://msdn2.microsoft.com/en-us/library/ms901737.aspx

Additional query words: eVC

Keywords: kbprb KB895421

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.