How do I turn off the fault tolerant heap?

后端 未结 10 1769
天涯浪人
天涯浪人 2020-12-05 02:12

I\'ve recently started seeing this line in my Visual Studio 2005 output window when launching my application:
FTH: (7156): *** Fault tolerant heap shim applied to cu

相关标签:
10条回答
  • 2020-12-05 02:47

    "Rundll32.exe fthsvc.dll,FthSysprepSpecialize" looks to only clear the list of currently flagged applications. if your application still causes oddities, the FTH should still step in and take over.

    as already mentioned:

    Set this registry value to 0: HKEY_LOCAL_MACHINE\Software\Microsoft\FTH\Enabled

    this should disable FTH for the whole system.

    0 讨论(0)
  • 2020-12-05 02:51

    Set this registry value to 0: HKEY_LOCAL_MACHINE\Software\Microsoft\FTH\Enabled

    0 讨论(0)
  • 2020-12-05 02:52

    I had similar issue when running a Unit test using (Microsoft::VisualStudio::CppUnitTestFramework). Somehow I had violated some heap allocation, and next time I tried to debug I received the message : "Fault tolerant heap shim applied to current process. This is usually due to previous crashes. " and the debug environment froze.

    To get it to work again, I had to remove test case, recompile and add it again and recompile, then I could set breakpoint and step into the test.

    0 讨论(0)
  • 2020-12-05 02:53

    On Windows 10 the registry location is:

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FTH
    

    You can remove you executable from the list in:

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FTH\State
    

    or you can run this command from an elevated command prompt

    Rundll32.exe fthsvc.dll,FthSysprepSpecialize
    

    You may need to reboot your machine

    0 讨论(0)
提交回复
热议问题