【问题标题】:BSoD after driver removing删除驱动程序后蓝屏
【发布时间】:2016-05-27 15:02:19
【问题描述】:

我使用来自 WDK8.0 - MSVAD 的示例编写了我的第一个音频驱动程序。 我的安装和工作没有任何问题,但是当我尝试通过设备管理器卸载驱动程序时遇到问题:

  • 如果驱动程序没有使用任何应用程序,那么我将其删除,没有任何问题。
  • 但是,如果我将驱动程序连接到应用程序,则操作系统 (Win10 x64) 需要重新加载 PC,然后它会通过消息 - SYSTEM_THREAD_EXCEPTION_NOT_HANDLED 进入 BSoD。尽管有该消息,但重新加载电源后,驱动程序仍被删除。

任何想法。

内存转储在这里enter link description here

【问题讨论】:

    标签: c++ windows driver uninstallation


    【解决方案1】:

    我发现了 WinDbg 的错误。 MSVAD 在 PnpHandler() 中有一个失败的代码

            ext->m_pCommon->UninstantiateDevices();
            ext->m_pCommon->Release();
            ext->m_pCommon = NULL;
    

    必须是

        if (ext->m_pCommon != NULL)
        {
            ext->m_pCommon->UninstantiateDevices();
            ext->m_pCommon->Release();
            ext->m_pCommon = NULL;
        }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多