SPIN_LOCK_NOT_OWNED

OS: XP SP1 Checked Build

Sometimes (rarely) when testing my audio driver I receive the a bugcheck
SPIN_LOCK_NOT_OWNED (BugCheck 0x10).

The only thing the DDK states about this is:

“The SPIN_LOCK_NOT_OWNED bug check has value 0x00000010. This bug check
appears very infrequently.”

What can I say, that statment is true…it’s code is 0x10 and it occurs
very infrequently.

My assumption is that I have some corrupted memory where my spin lock is
held…and when I want to acquire it, the checked build detects it and bug
checks.

But, I wonder if anybody else knows what this could be.

Thank you

Sorry, I meant to say, “release” instead of “acquire”…

I think the error means I am holding a spin lock, but I (or something) has
corrupted the memory where the spin lock is, and when I go to release it,
checked build thinks I am not holding it.

It seems to be happening in the GetMapping() call of the WavePCI audio
class.