{"id":3740,"date":"2014-03-30T05:06:09","date_gmt":"2014-03-30T05:06:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/clr-dllloghelp_terminateonassert-in-a-net-4-0-process-collection-of-common-programming-errors\/"},"modified":"2014-03-30T05:06:09","modified_gmt":"2014-03-30T05:06:09","slug":"clr-dllloghelp_terminateonassert-in-a-net-4-0-process-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/clr-dllloghelp_terminateonassert-in-a-net-4-0-process-collection-of-common-programming-errors\/","title":{"rendered":"clr.dll!LogHelp_TerminateOnAssert in a .NET 4.0 process-Collection of common programming errors"},"content":{"rendered":"<p><strong>Background:<\/strong> 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&#8217;s Process Explorer to make sure that there isn&#8217;t anything unusual with my application such as count of GDI handles or user objects etc.<\/p>\n<p><strong>Problem:<\/strong> While using Process Explorer, I found that <em>Threads<\/em> tab for my application&#8217;s property in Process Explorer shows a lots and lots of entries of &#8220;clr.dll!LogHelp_TerminateOnAssert+0x58f68&#8221;. 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.<\/p>\n<p>Whats is LogHelp_TerminateOnAssert()? (I believe it is a function in clr.dll)<\/p>\n<p>Why is LogHelp_TerminateOnAssert() getting called so many times?<\/p>\n<p>Any pointers will be very helpful.<\/p>\n<p>Thanks in advance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s Process Explorer to make sure that there isn&#8217;t anything unusual with my application such as count of GDI handles or user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3740","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3740"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3740\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}