Microsoft KB Archive/195549

= PRB: Exception When Calling RegisterDevice =

Article ID: 195549

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Windows CE 1.0 Embedded ToolKit (ETK)

-



This article was previously published under Q195549



SYMPTOMS
A Windows CE embedded application that tries to load a stream interface device driver throws an exception inside the call to RegisterDevice. The debugger output shows messages similar to the following:

0x80efdda4: ObjectCall: Failed(1): 16

0x80efdda4: Exception 000 Thread=80efdda4 Proc=20efa42a 'testapp.exe'

0x80efdda4: AKY=00000021 PC=8022f35d ESP=0c02ecec EA=00000000

First chance exception c000001c occurred

Thread stopped.



CAUSE
The RegisterDevice function is implemented in the device manager (Device.exe) component of Windows CE. If the current target project does not contain the DEVICE component, the RegisterDevice function is not available.



RESOLUTION
The DEVICE component and its related components (such as filesys) must be added to the CE_MODULES component list used by CESYSGEN. Refer to the Windows CE ETK documentation for information about component selection.



STATUS
This behavior is by design.

