IRP_MJ_PNP routine take long time to invoke RRS feed

  • Question

  • Hi,

    Currently I am facing a very weired problem with my driver till the date it was working fine but few days ago problem of BSOD occur in some of the PC and majorly it is on Vista system.
    After aalyzing I find the root cause of issue but could not able to fix it , any help on this topic would be highly appreciated,here are my observation :

    This device driver is Plug and play type of device driver, So when I unplug the USB then it will take 3-4 sec to invoke IRP_MJ_PNP, but on the same time the application which is using this driver get failure for write and read operation and try to open a USB port using Createfile call but this call comes by application before Pnp manager hit the IRP_MJ_Routine so the call to IRP_MJ_CREATE routine raise a double fault error and computer raise BSOD error.

    How can we avoid this situation, plz give me your valuable suggetion ,I am a beginner i device driver writing.

    And my question is why pnp manager is taking so long to execute IRP_MJ_PNP routine on some of the PC cause in normal it doesn't(Windows 7 - 32 bit) take long time 

    Sunday, February 19, 2012 5:43 AM