{"id":8463,"date":"2012-01-25T07:00:00","date_gmt":"2012-01-25T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2012\/01\/25\/how-do-i-disable-the-fault-tolerant-heap\/"},"modified":"2012-01-25T07:00:00","modified_gmt":"2012-01-25T07:00:00","slug":"how-do-i-disable-the-fault-tolerant-heap","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20120125-00\/?p=8463","title":{"rendered":"How do I disable the fault-tolerant heap?"},"content":{"rendered":"<p>A while back, I <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2010\/03\/31\/9987780.aspx\"> linked to<\/a> a talk by Silviu Calinoiu on <a href=\"https:\/\/channel9.msdn.com\/shows\/Going+Deep\/Silviu-Calinoiu-Inside-Windows-7-Fault-Tolerant-Heap\/\"> the fault-tolerant heap<\/a>. But what if you don&#8217;t want the fault-tolerant heap? For example, during program development, you probably want to disable the fault-tolerant heap for your program: If the program is crashing, then it should <i>crash<\/i> so you can debug it!\n Method&nbsp;1 is to <a href=\"http:\/\/msdn.microsoft.com\/library\/dd744764.aspx\"> disable the fault-tolerant heap globally<\/a>. While this prevents the fault-tolerant heap from auto-activating in the future, it does not go back and undo activations that were enabled in the past. In other words, you have to remember to do this <i>before<\/i> your application crashes for the first time.\n Therefore, you probably want to combine Method&nbsp;1 with Method&nbsp;2 on the same page, where it gives instructions on how to reset the list of applications for which the fault-tolerant heap is enabled.\n Mario Raccagni provides a third way of disabling the fault tolerant heap, this time for one specific process instead of globally. <a href=\"http:\/\/blogs.msdn.com\/b\/itasupport\/archive\/2009\/10\/08\/come-disabilitare-il-fault-tolerant-heap.aspx\"> His explanation is in Italian<\/a>, so you get to exercise your translation skills.<\/p>\n<p> tl;dr version: Go to the <code>HKEY_LOCAL_MACHINE<\/code> and <code>HKEY_CURRENT_USER<\/code> versions of <code>Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\\<\/code><i>your_application.exe<\/i> and delete the <code>Fault&shy;Tolerant&shy;Heap<\/code> entry. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while back, I linked to a talk by Silviu Calinoiu on the fault-tolerant heap. But what if you don&#8217;t want the fault-tolerant heap? For example, during program development, you probably want to disable the fault-tolerant heap for your program: If the program is crashing, then it should crash so you can debug it! Method&nbsp;1 [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-8463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>A while back, I linked to a talk by Silviu Calinoiu on the fault-tolerant heap. But what if you don&#8217;t want the fault-tolerant heap? For example, during program development, you probably want to disable the fault-tolerant heap for your program: If the program is crashing, then it should crash so you can debug it! Method&nbsp;1 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/8463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=8463"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/8463\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=8463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=8463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=8463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}