Attempt to use an unknown printer handle |
Application Verifier break message
Attempt to use an unknown printer handle
Probable cause
An attempt was made to use a printer handle that was not opened by calling OpenPrinterA, OpenPrinterW, OpenPrinter2W (on Microsoft Windows Vista), AddPrinterA, or AddPrinterW.
Troubleshooting steps
To see the stack trace of the routine that attempted this action, use the �k' command in the debugger. The sample debugger output illustrates the following troubleshooting steps:
-
Examine the stack trace to find the function that includes the printer handle from Parameter 1 in the argument list.
-
Find the routine that includes this function and examine the source code to determine the open function used to open the handle and correct it if necessary.
� | Copy Code |
---|---|
======================================= VERIFIER STOP 0000A006 : pid 0x1398: Attempt to use an unknown printer handle 031B4C00 : Printer handle being accessed. 00000000 : Not used. 00000000 : Not used. 00000000 : Not used. ======================================= 0:000> k ChildEBP RetAddr 0024f80c 7332385b ntdll!DbgBreakPoint 0024fa10 71366481 vrfcore!VerifierStopMessageEx+0x4bd 0024fa48 713678b0 vfprint!CResourceUsageMgr<void *,CHandleTracker_t<void *> >::ClosedHandleCheck+0xc7 0024fa64 001432cc vfprint!VfHookGetPrinterW+0x5c 000efae4 00142edc UnitTestvfPrint!UseCompletelyInvalidPrinterHandle+0x4c * Unknown printer handle used 000efbdc 001450b6 UnitTestvfPrint!wmain+0x3dc 000efc20 76413833 UnitTestvfPrint!__wmainCRTStartup+0x102 000efc2c 775fa9bd KERNEL32!BaseThreadInitThunk+0xe 000efc6c 00000000 ntdll!_RtlUserThreadStart+0x23 |
Information displayed by Application Verifier
Parameter 1 - Printer handle being accessed.
Parameter 2 - Not used.
Parameter 3 - Not used.
Parameter 4 - Not used.
Additional information
Test Layer:�PrintAPI
Stop code:�0000A006
Severity:�Error
One-time error:�no
Error report:�Break
Log to file:�yes
Create backtrace:�yes