my winCE application got a message says that "encounter serious problem needs shut dow" RRS feed

  • Question

  • I am writing an HID application that enables the master device sends raw packet to the slave device,  however, when I am make the HID funcation calls shown below,  I am getting error says that "encounter serious problem needs shut dow"



    DWORD cbHidPacket;

    HIDP_CAPS   hidCaps;

    DWORD cbMaxHidPacket =   hidCaps.InputReportByteLength;

    DWORD dwErr = pHIDFuncs->lpGetInterruptReport(hDriver, (PCHAR)packet.buffer, cbMaxHidPacket, &cbHidPacket, NULL, INFINITE);

    PHIDP_PREPARSED_DATA  pPreparsedData

    = (PHIDP_PREPARSED_DATA)HeapAlloc(heap, 0, len);


    const HID_DRIVER_SETTINGS* pDriverSettings;

    PVOID* ppvNotifyParameter;

    BOOL bAttach=HIDDeviceAttach(hDriver, pHIDFuncs, pDriverSettings, pPreparsedData, ppvNotifyParameter, NULL);

    if (bAttach==false)


                  printf("the device is not attached\n");




                 printf("this device is attached\n");


    Monday, January 7, 2013 9:41 PM

All replies

  • you can check if there is a crash or bad pointer access ?

    --- Misbah

    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India)

    Tuesday, January 8, 2013 5:16 AM