Hey all, This is the same issue as last time. I found a potential issue, fixed it, and have been BSOD free for a while. However, the same portcls!CPortPinWaveRT::Close+87 issue has come up again. Any ideas as to what is causing this or why it is happening is appreciated. The issues comes up sporadically when waking Vista from S3 when an active stream was playing in WMP. My DMA's have stopped and FreeAudioBuffer has not been called yet, but, should be the next thing that gets called afik looking at successful wake-ups that get past this point. Here is the detailed crash dump: 0: kd> !analyze -v ************************************************************************ ******* * * * Bugcheck Analysis * * * ************************************************************************ ******* MEMORY_MANAGEMENT (1a) # Any other values for parameter 1 must be individually examined. Arguments: Arg1: 00041790, The subtype of the bugcheck. Arg2: c080104e Arg3: 0000ffff Arg4: 00000000 Debugging Details: ------------------ BUGCHECK_STR: 0x1a_41790 DEFAULT_BUCKET_ID: VISTA_RC PROCESS_NAME: audiodg.exe CURRENT_IRQL: 0 LAST_CONTROL_TRANSFER: from 818d873f to 81881760 STACK_TEXT: a04de64c 818d873f 00000003 a04d5ddc 00000000 nt!RtlpBreakWithStatusInstruction a04de69c 818d91ac 00000003 8a3d8b98 83479e2c nt!KiBugCheckDebugBreak+0x1c a04dea48 818d85c9 0000001a 00041790 c080104e nt!KeBugCheck2+0x5f4 a04dea6c 81abd866 0000001a 00041790 c080104e nt!KeBugCheckEx+0x1e a04deb54 818baa9a 007df000 89eaf0e8 845c0840 nt!MiUnmapLockedPagesInUserSpace+0x311 a04deb7c 87e39ef6 007c0000 89e03008 89eaf0e8 nt!MmUnmapLockedPages+0x22 a04debb8 87e2aba4 83f8dd90 89eaf030 840e2450 portcls!CPortPinWaveRT::Close+0x87 a04debd8 872cf62a 89eaf030 8b484358 a04dec00 portcls!DispatchClose+0x51 a04debe8 87e2fd74 89eaf030 840e2450 840e2460 ks!KsDispatchIrp+0x71 a04dec00 87e3090a 89eaf030 840e2450 a04dec30 portcls!KsoDispatchIrp+0x43 a04dec10 8a0ce720 89eaf030 840e2450 00000000 portcls!PcDispatchIrp+0x2d a04dec30 81827ecf 89eaf030 840e2450 8411d180 AudioDriver!CloseHandler+0x160 [<-- This is my driver] a04dec48 819950bd 00000000 00000000 00000000 nt!IofCallDriver+0x63 a04dec8c 819ed5b5 8411d180 81ba7078 8411d168 nt!IopDeleteFile+0x178 a04deca8 818476d0 8411d180 00000000 8a3d8b98 nt!ObpRemoveObjectRoutine+0x100 a04decd0 819f1742 8c5d6368 8a3d8b98 000001ec nt!ObfDereferenceObject+0xa1 a04ded14 819f17ca 8c5d6368 8c5f33d8 83f8dd90 nt!ObpCloseHandleTableEntry+0x254 a04ded44 819f18bc 83f8dd90 8a3d8b01 8a3d8b01 nt!ObpCloseHandle+0x73 a04ded58 8188c96a 000001ec 020aecb4 77a60f34 nt!NtClose+0x20 a04ded58 77a60f34 000001ec 020aecb4 77a60f34 nt!KiFastCallEntry+0x12a 020aeca0 77a5f360 76467a55 000001ec 01b9002c ntdll!KiFastSystemCallRet 020aeca4 76467a55 000001ec 01b9002c 020aece0 ntdll!NtClose+0xc 020aecb4 75124dc3 000001ec 533df082 01b900f8 kernel32!CloseHandle+0x40 WARNING: Stack unwind information not available. Following frames may be wrong. 020aece0 75124f4a 533df16a 00000000 01b9002c audiokse+0x4dc3 020aed08 7512580a 01b9002c 020aed28 751257de audiokse+0x4f4a 020aed14 751257de 00000001 751ed4e0 01590240 audiokse!DllCanUnloadNow+0x862 020aed28 751ecef5 01b9002c 533c9cc1 00000000 audiokse!DllCanUnloadNow+0x836 020aed54 751ecf3c 01590240 020aed74 751e2cf0 audioeng!CAudioPump::~CAudioPump+0x149 020aed60 751e2cf0 00000001 00836000 006a6e80 audioeng!ATL::CComObject<CAudioPump>::`scalar deleting destructor'+0xd 020aed74 00821ad7 01590240 53e3717b 00000000 audioeng!ATL::CComObject<CAudioPump>::Release+0x27 020aeda0 00821b44 006a6e80 020aedc0 00821b2a AUDIODG!CAudioDeviceGraph::~CAudioDeviceGraph+0x9b 020aedac 00821b2a 00000001 00836000 006a2860 AUDIODG!ATL::CComObject<CAudioDeviceGraph>::`vector deleting destructor'+0xd 020aedc0 00821c79 006a6e80 00000000 006a2860 AUDIODG!ATL::CComObject<CAudioDeviceGraph>::Release+0x27 020aedd4 00821ba0 53e37127 00000000 006a2860 AUDIODG!CSystemAudioDeviceShared::Cleanup+0xec 020aedfc 00821b6a 006a2860 020aee1c 00822592 AUDIODG!CSystemAudioDeviceShared::~CSystemAudioDeviceShared+0x1d 020aee08 00822592 00000001 0011fa94 0011f9d8 AUDIODG!ATL::CComObject<CSystemAudioDeviceShared>::`vector deleting destructor'+0xd 020aee1c 778f1147 006a2860 53e4b2bb 00000000 AUDIODG!ATL::CComObject<CSystemAudioDeviceShared>::Release+0x2a 020aee5c 778f10ec 00000000 0011f9dc 0011f9d8 ole32!CStdIdentity::ReleaseCtrlUnk+0x55 020aee8c 778ec189 00000001 00000000 020aeeec ole32!CStdMarshal::Disconnect+0x281 020aee9c 778ec13d 00000000 020af124 020aef04 ole32!CStdMarshal::HandlePendingDisconnect+0x2b 020aeeec 778ec176 00000002 00123bb0 00000001 ole32!CRemoteUnknown::RemReleaseWorker+0x1d7 020aef00 77566dfe 000dab90 00000002 00123bb0 ole32!CRemoteUnknown::RemRelease+0x15 020aef20 775e03ef 778ec161 020af128 00000003 RPCRT4!Invoke+0x2a 020af34c 775e21e2 000da288 000dcc48 00109498 RPCRT4!NdrStubCall2+0x27b 020af39c 779d92a0 000da288 00109498 000dcc48 RPCRT4!CStdStubBuffer_Invoke+0xa0 020af39c 779d92a0 000da288 00109498 000dcc48 ole32!SyncStubInvoke+0x3c 020af3e4 779d923a 00109498 000e40c8 00000000 ole32!SyncStubInvoke+0x3c 020af430 779025c2 00109498 000dcb58 000da288 ole32!StubInvoke+0xb9 020af50c 779024d3 000dcc48 00000000 000da288 ole32!CCtxComChnl::ContextInvoke+0xfa 020af528 779d87da 00109498 00000001 000da288 ole32!MTAInvoke+0x1a 020af558 779d8fdf d0908070 000dcc48 000da288 ole32!AppInvoke+0xaa 020af634 779d87ea 00109440 000e2780 0011a908 ole32!ComInvokeWithLockAndIPID+0x32c 020af680 7756744b 0011a908 53e4aada 0011a908 ole32!ThreadInvoke+0x2fd 020af6bc 775672f9 779d9378 0011a908 020af7b8 RPCRT4!DispatchToStubInCNoAvrf+0x41 020af730 77564b61 00000000 00000000 00000000 RPCRT4!RPC_INTERFACE::DispatchToStubWorker+0xdf 020af754 77564ae3 0011a908 00000000 020af7b8 RPCRT4!RPC_INTERFACE::DispatchToStub+0x67 020af788 77564a96 0011a96c 00000000 00000000 RPCRT4!RPC_INTERFACE::DispatchToStubWithObject+0x3e 020af7c8 77567655 0011a898 020af804 0011a898 RPCRT4!LRPC_SCALL::DispatchRequest+0x298 020af834 7756620a 0011a898 00123b28 00122a20 RPCRT4!LRPC_SCALL::HandleRequest+0x1d2 020af8dc 7757b0e2 00000000 00104500 00108680 RPCRT4!LRPC_ADDRESS::ProcessIO+0x216 020af930 7757ac4f 000d4d98 020af960 7757acb9 RPCRT4!LOADABLE_TRANSPORT::ProcessIOEvents+0x162 020af93c 7757acb9 000d4d98 00000000 00000000 RPCRT4!ProcessIOEventsWrapper+0xe 020af960 7757ad03 00108680 020af978 76463833 RPCRT4!BaseCachedThreadRoutine+0x5c 020af96c 76463833 00104500 020af9b8 77a3a9bd RPCRT4!ThreadStartRoutine+0x1e 020af978 77a3a9bd 00104500 020a27ea 00000000 kernel32!BaseThreadInitThunk+0xe 020af9b8 00000000 7757ace5 00104500 00000000 ntdll!_RtlUserThreadStart+0x23 STACK_COMMAND: kb FOLLOWUP_IP: portcls!CPortPinWaveRT::Close+87 87e39ef6 399e94000000 cmp dword ptr [esi+94h],ebx SYMBOL_STACK_INDEX: 6 FOLLOWUP_NAME: MachineOwner MODULE_NAME: portcls IMAGE_NAME: portcls.sys DEBUG_FLR_IMAGE_TIMESTAMP: 4549b266 SYMBOL_NAME: portcls!CPortPinWaveRT::Close+87 FAILURE_BUCKET_ID: 0x1a_41790_portcls!CPortPinWaveRT::Close+87 BUCKET_ID: 0x1a_41790_portcls!CPortPinWaveRT::Close+87