Alex Rivera | Logout

clr.dll!LogHelp_TerminateOnAssert in a .NET 4.0 process

Asked 2010-11-30T23:57:12.717
20

Background: I am working on a WinForm based .NET 4.0 desktop application that has few threads and timers and uses some GDI processing for user controls. During my development I usually peep into sysinternal's Process Explorer to make sure that there isn't anything unusual with my application such as count of GDI handles or user objects etc.

Problem: While using Process Explorer, I found that Threads tab for my application's property in Process Explorer shows a lots and lots of entries of "clr.dll!LogHelp_TerminateOnAssert+0x58f68". Is this normal? I think it is not because non of other .net application (that I had written in the past) shows the same entry in their properties in Process Explorer.

Whats is LogHelp_TerminateOnAssert()? (I believe it is a function in clr.dll)

Why is LogHelp_TerminateOnAssert() getting called so many times?

Any pointers will be very helpful.

Thanks in advance.

c#
Edit
Report

1 Answer

1

You mention using threads - since each thread gets its own stack it could be that the default stack size is being exceeded at some point causing the exception which is then trapped by the .NET runtime. What kind of work are you doing in the threads (recursion, lots of stack variables, etc)?

I believe default thread stack size is set at 1MB - try setting the stack size to 4MB in the thread constructor and see if the error persists.

answered 2011-09-06T19:37:22.373

Your Answer