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

Windbg Handle Leak (c# AutoResetEvent)

98 views
Skip to first unread message

Maanu

unread,
Mar 8, 2010, 6:32:01 AM3/8/10
to
I am trying to identify handle leak with Windbg. I know that the handle leak
is with AutoResetEvent. So I used the following commad

0:003> !DumpHeap -type System.Threading.AutoResetEvent
Address MT Size
013f2af4 7931bc88 24
013f2b2c 7931bc88 24

When I tried to execute the "!gcroot 013f2af4", i got the following messages

0:003> !gcroot 013f2af4
Note: Roots found on stacks may be false positives. Run "!help gcroot" for
more info.
Scan Thread 0 OSTHread 147c
Scan Thread 2 OSTHread 9c4

What does it mean?
Actually these objects are creating handle leaks?
How can I detect from which classes the leak of AutoResetEvent occur?

Thanks!

Marc Sherman

unread,
Mar 9, 2010, 5:02:55 PM3/9/10
to
Only two AutoResetEvents? I'm assuming that an AutoResetEvent class just has
one handle to a native event. If that's the case, I don't think two qualify
as a leak.

You could try `!handle 0 f Event` and see how many are auto reset event
handles are displayed to see if they are really leaking.

good luck.

"Maanu" <Ma...@discussions.microsoft.com> wrote in message
news:F469C8C0-506B-4837...@microsoft.com...

0 new messages