IDccMan->Advise call hangs when device is connected to PC

  • Thread starter Thread starter PR
  • Start date Start date
P

PR

I am trying to use the COM interfaces IDccMan and IDccManSink to register my
desktop program to receive notifiations when the device (Pocket PC) is
connected or disconnected to the PC. I do this by calling the Advise method
of IDccMan interface. It works fine if the device is not connected to the
PC when the call (Advise) is made. I get notifications properly. But if I
try to register when a device is connected to the PC, the IDccMan->Advise
call hangs. Any help is appreciated. Thanks.

PR
 
You get the same with the OpenNETCF Communication class? What version of
ActiveSync?

-Chris
 
I am working with ActiveSync 3.8. This code runs on the desktop PC. I am
not using OpenNetCF. Thanks.

PR
 
Just as a start try the OpenNETCF stuff just to see if it gives the same
behavior. ActiveSync's behavior seems to change with every version. If
both libraries give the same behavior, then you know it's AS, not your code.

-Chris
 
Back
Top