Sign in to follow this  

0xC0000096: Privileged instruction. when accessing QueryInterface

Recommended Posts

hi i use this hRet = pMesh->QueryInterface( IID_ID3DXMesh, (void**)&m_pMesh ); if ( FAILED(hRet) ) return hRet; in a mesh attach function.and during the execution of the program this above code is called quite a number of times.but out of the blue i get this exception 0xC0000096: Privileged instruction. please help me out to sort this issue thankz

Share this post

Link to post
Share on other sites
Windows Update Error Codes


Hardware Exceptions



Executing an instruction not allowed in current machine mode.

In other words, user mode code is attempting to execute kernel mode code.

Since it's not likely that your code contains privileged instructions, it's more likely that at some point the cpu instruction pointer jumped to some garbage bytes that the cpu is trying to interpret as machine instructions.

As Evil Steve suggested, double check the validity of pMesh as well as the other parameters to the method call.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this