How do I turn off the fault tolerant heap?

后端 未结 10 1768
天涯浪人
天涯浪人 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:27

    you can clear the list of applications tracked by FTH without stopping this service by following these steps:

    1. Click the Start menu.
    2. Right-click Computer and click Manage.
    3. Click Event Viewer -> Applications and Services Logs -> Microsoft -> Windows -> Fault-Tolerant-Heap.
    4. View FTH Events.

    you will find file named operational by right click and choose clear log, then you can run you program again and warning message will disappear, it worked with me without restarting operating system.

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

    To disable it for a single application

    Go to the HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER versions of Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\your_application.exe and delete the Fault­Tolerant­Heap entry.

    From here (actually here)

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

    You can add the name of your executable to the ExclusionList.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FTH\ExclusionList
    

    Works for me.

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

    I had to rename the file as well because the registry entries associated with this key were empty of applicable data. I expect that they populate if you have a misbehaving application. But in my case I was debugging my own application within Visual Studio. So in that case, it was my process that was somehow loading the FTH whether the FTH Service was running or not. And in fact I had no applications listed that were previously tagged as misbehaving.

    But I had to follow these instructions:

    http://billroper.livejournal.com/960825.html

    because it wouldn't let me rename the file until I took ownership and made sure I had full control.

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

    You can edit the application manifest to excluding your program from PCA

    see also:How to reset Program Compatibility Assistant for testing

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

    Also ran into this. Renaming/deleting AcXtrnal.dll inside Windows\AppPatch seems to work for me. I like how this Microsoft recommended action (which I did first) does nothing.

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