Menu

Application Verifier break message

Incorrect object type for handle.

Probable cause

This stop is generated if the current thread is calling an API with a handle to an object with an incorrect object type. For example, calling SetEvent with a semaphore handle as parameter will generate this stop.

Information displayed by Application Verifier

Parameter1 - Handle value

Parameter2 - Object type name. Use du to display it

Parameter3 - Expected object type name. Use du to display it

Parameter4 - Not used

Description - Object type name. Use du to display it

Additional information

Verifier stop code 0305.

Frequency of this error is low.

To debug this stop:

kb � to display the current stack trace. The culprit is probably the DLL that is calling into verifier.dll;

du parameter2 � to display the actual type of the handle. The handle value is parameter1.

du parameter3 � to display the object type expected by the API.

!htrace parameter1 might be helpful because it will display the stack trace for the recent open/close operations on this handle.