Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Which object is NtWaitForSingleObject wating for?

1,187 views
Skip to first unread message

Devrobcom

unread,
Mar 10, 2004, 3:50:42 AM3/10/04
to
Hi
One of our clients complains that when his app create one of my objects
he will be waiting forever. His client app creates the com object several
times so he holds about 30 intances but when he shall create another one
from another view he will be hanging forever.
I have his client app (not the source) and i have been able to reproduce the
problem. (I have no problems with my test app i can create > 100 instances.)
The stack looks like this, when the app calls CoCreateInstance he will be
blocked forever.

How can i findout which object is NtWaitForSingleObject wating for?

WARNING: Stack unwind information not available. Following frames may be
wrong.
00000578 ffffffff 00000000 ntdll!NtWaitForSingleObject+0xb
00143810 001c5820 00206bf4 KERNEL32!WaitForSingleObject+0xf
0476c53c 00206bf4 00143810 ole32!WdtpInterfacePointer_UserSize+0x1af8
00206bf4 0476c674 0476c630 ole32!StgGetIFillLockBytesOnFile+0x19f30
00206bf4 0476c674 0476c630 ole32!WdtpInterfacePointer_UserSize+0x19cd
00206bf4 0476c674 0476c630 ole32!UpdateDCOMSettings+0xad78
001a7f7c 0476c6c0 05030117 RPCRT4!NdrProxySendReceive+0x4c
77a5a9a8 77a5db5e 0476c8a0 RPCRT4!NdrClientCall2+0x4f5
00000014 00000004 0476c8b4 RPCRT4!NdrStubCall2+0xb03
001a7f7c 00000000 0476cd88 RPCRT4!NdrServerMarshall+0x1311
001a7f7c 00000001 00000000 ole32!CoInstall+0x4ddc
77b2c754 0476cbd8 00000000 ole32!CoInstall+0x4d44
77b2c754 0476cbd8 00000000 ole32!CoInstall+0x4c53
77b2c754 00000000 0476cd88 ole32!CoInstall+0x4c04
0476cd88 00000000 0476d324 ole32!StgGetIFillLockBytesOnFile+0x78e5
77b2c714 00000000 0476cd88 ole32!CoInstall+0x46bb
0476cd88 00000000 0476d324 ole32!StgGetIFillLockBytesOnFile+0x78e5
0476fc50 00000000 00000017 ole32!CoInstall+0x5f33
0476fc50 00000000 00000017 ole32!CoCreateInstanceEx+0x2b
0476fc50 00000000 00000017 ole32!CoCreateInstance+0x35

/Dev


Ivan Brugiolo [MSFT]

unread,
Mar 10, 2004, 4:12:18 AM3/10/04
to
Your symbols for OLE32 are pretty bad,
(follow instructions at
http://www.microsoft.com/whdc/ddk/debugging/symbols.mspx)
and you don't specify in which OS is this happening.
With good symbols, and the output of the `~*kb' command,
in the microsoft.public.win32.programmer.ole forum you shold be able to find
support.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Devrobcom" <devr...@hotmail.com> wrote in message
news:404ed71d$1...@news1e1.seinf.abb.se...

Devrobcom

unread,
Mar 10, 2004, 5:25:36 AM3/10/04
to
Thank you,

Win2k sp3.
Now its looks like:

16 Id: 4c8.588 Suspend: 1 Teb: 7ffaa000 Unfrozen
ChildEBP RetAddr Args to Child
0474c490 7c599e8e 00000a64 00000000 00000000 ntdll!NtWaitForSingleObject+0xb
0474c4b8 7c57b3d5 00000a64 ffffffff 00000000
KERNEL32!WaitForSingleObjectEx+0x71
0474c4c8 77ab3231 00000a64 ffffffff 0474c53c
KERNEL32!WaitForSingleObject+0xf
0474c4e4 77b2399b 00143810 001d3f60 00209660 ole32!GetToSTA+0x6c
0474c500 77b20aa5 0474c53c 00209660 00143810
ole32!CRpcChannelBuffer::SwitchAptAndDispatchCall+0xee
0474c540 77b23870 00209660 0474c674 0474c630
ole32!CRpcChannelBuffer::SendReceive2+0x96
0474c550 77a6c767 00209660 0474c674 0474c630
ole32!CRpcChannelBuffer::SendReceive+0x11
0474c5b0 77ab6ac3 00209660 0474c674 0474c630
ole32!CAptRpcChnl::SendReceive+0xa9
0474c608 77d90328 00209660 0474c674 0474c630
ole32!CCtxComChnl::SendReceive+0x124
0474c624 77d92b3f 001e033c 0474c6c0 05030117 RPCRT4!NdrProxySendReceive+0x4c
0474c86c 77d95f85 77a5a9a8 77a5db5e 0474c8a0 RPCRT4!NdrClientCall2+0x4f5
0474c888 77d77fcb 00000014 00000004 0474c8b4
RPCRT4!ObjectStublessClient+0x76
0474c898 77abf55c 001e033c 00000000 0474cd88 RPCRT4!ObjectStubless+0xf
0474c8b4 77abf4c4 001e033c 00000001 00000000
ole32!CProcessActivator::CCICallback+0x59
0474c8d4 77abf3d3 77b2c754 0474cbd8 00000000
ole32!CProcessActivator::AttemptActivation+0x2a
0474c918 77abf384 77b2c754 0474cbd8 00000000
ole32!CProcessActivator::ActivateByContext+0x4a
0474c940 77b0e45a 77b2c754 00000000 0474cd88
ole32!CProcessActivator::CreateInstance+0x32
0474c95c 77abee3b 0474cd88 00000000 0474d324
ole32!ActivationPropertiesIn::DelegateCreateInstance+0x4a
0474c988 77b0e45a 77b2c714 00000000 0474cd88
ole32!CClientContextActivator::CreateInstance+0x80
0474c9a4 77ac06b3 0474cd88 00000000 0474d324
ole32!ActivationPropertiesIn::DelegateCreateInstance+0x4a

I will try with ole forum
/Dev

"Ivan Brugiolo [MSFT]" <ivan...@online.microsoft.com> wrote in message
news:eNRlK$nBEHA...@TK2MSFTNGP11.phx.gbl...

0 new messages