Attempt to use a closed PrintTicket provider handle (HPTPROVIDER) |
Application Verifier break message
Attempt to use a closed PrintTicket provider handle (HPTPROVIDER)
Probable cause
A PrintTicket provider handle was used after it had been freed.
Troubleshooting steps
The sample debugger output below illustrates the following troubleshooting steps:
-
To see the routine that tried to use the closed PrintTicket provider handler, dump the current stack trace by using the �k' command in the debugger.
-
To dump the stack trace of the routine that closed the handle, use the dps command with the second parameter of the stop.
� | Copy Code |
---|---|
======================================= VERIFIER STOP 0000A00E : pid 0xB0: Attempt to use a closed PrintTicket provider handle (HPTPROVIDER) 03216FE8 : HPTPROVIDER handle being accessed. 02F7BF48 : Stack trace of the closing. Use dps to dump the stack trace if it is not NULL. 00000000 : Not used. 00000000 : Not used. ======================================= 0:000> k ChildEBP RetAddr 001dfa58 7175385b ntdll!DbgBreakPoint 001dfc5c 6eee4237 vrfcore!VerifierStopMessageEx+0x4bd 001dfc90 6eee45f6 vfprint!CResourceUsageMgr<HPTPROVIDER__ *,CHandleTracker_t<HPTPROVIDER__ *> >::ClosedHandleCheck+0x49 001dfd34 00143dc2 vfprint!VfPTCloseProvider+0x111 001dfd44 00142edc UnitTestvfPrint!UseAfterClosePTProviderHandle+0x32 * !This routine tries to uses closed PrintTicket provider handle, a bug 001dfe3c 001450b6 UnitTestvfPrint!wmain+0x3dc 001dfe80 76413833 UnitTestvfPrint!__wmainCRTStartup+0x102 001dfe8c 775fa9bd KERNEL32!BaseThreadInitThunk+0xe 001dfecc 00000000 ntdll!_RtlUserThreadStart+0x23 0:000> dps 02F7BF48 02f7bf48 6eeecc12 vfprint!CaptureStack+0x17 02f7bf4c 6eee4533 vfprint!VfPTCloseProvider+0x4e 02f7bf50 00143db9 UnitTestvfPrint!UseAfterClosePTProviderHandle+0x29 * !The routine that closes the PrintTicket provider handle 02f7bf54 00142edc UnitTestvfPrint!wmain+0x3dc 02f7bf58 001450b6 UnitTestvfPrint!__wmainCRTStartup+0x102 02f7bf5c 76413833 KERNEL32!BaseThreadInitThunk+0xe |
02f7bf60 775fa9bd ntdll!_RtlUserThreadStart+0x23
Information displayed by Application Verifier
Parameter 1�-�HPTPROVIDER handle being accessed.
Parameter 2�-�Stack trace of the closing. Use dps to dump the stack trace if it is not NULL.
Parameter 3�-�Not used.
Parameter 4�-�Not used.
Additional information
Test Layer:�PrintAPI
Stop code:�0000A00E
Severity:�Error
One-time error:�no
Error report:�Break
Log to file:�yes
Create backtrace:�yes