BSOD on uninstall if multiple drivers were installed

hi
I wrote an avstream minidriver
in case I install 2 of my drivers when I try to uninstall the first driver
that was installed I get a bsod.
reviewing teh memory dumps I see ks.sys, ksthunk.sys and wdf100 (in
addition tomy sys) are involved. I did not see any probelm in my code
any idea what can this be?

if only one driver is installed and uninstalled there is no issue
thanks!

On Sep 17, 2014, at 1:56 PM, NtDev mm > wrote:
I wrote an avstream minidriver
in case I install 2 of my drivers when I try to uninstall the first driver that was installed I get a bsod.
reviewing teh memory dumps I see ks.sys, ksthunk.sys and wdf100 (in addition tomy sys) are involved. I did not see any probelm in my code
any idea what can this be?

if only one driver is installed and uninstalled there is no issue

When you say ?I install 2 of my drivers?, do you mean that your driver is driving 2 devices? When you uninstall a driver, that forces all of the devices using that driver to unload. It is possible that your driver is not prepared to be unloaded unexpectedly.

The answer is almost certainly in the !analyze -v output, which you have not shared with us. You didn?t even tell us what bug check code you got in the BSOD.

Tim Roberts, xxxxx@probo.commailto:xxxxx
Providenza & Boekelheide, Inc.</mailto:xxxxx>