Microsoft KB Archive/241182

{|
 * width="100%"|

BUG: IReplNotify::QueryDevice with QDC_SYNC_DATA Fails with RERR_NO_DEVICE

 * }

Q241182

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), included with:
 * Microsoft Windows CE versions 2.0, 3.0 Professional Edition for the Handheld PC
 * Microsoft Windows CE versions 2.0, 2.12 for the Palm-size PC

-

SYMPTOMS
When using ActiveSync 3.0, IReplNotify::QueryDevice with QDC_SYNC_DATA fails with RERR_NO_DEVICE even though the device successfully connected to the desktop.

CAUSE
The error can occur when calling IReplNotify::QueryDevice in IReplNotify::Initialize. The problem is caused by a race condition between the thread calling IReplNotify::QueryDevice and another thread in ActiveSync 3.0 that is handling the connection to the device.

RESOLUTION
If this error occurs, the application should pause or do other processing before calling IReplNofiy::QueryDevice again.

STATUS
Additional query words:

Keywords : kbAPI kbKernBase kbOSWinCE200bug kbDSupport kbGrpDSKernBase kbOSWinCE212bug

Issue type : kbbug

Technology : kbAudDeveloper kbWin32sSearch kbWin32API