<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Thank you very much that is the way. Do you know if elevated privileges are needed to do that?</p>
<p>--Philippe</p>
<div id="signature"> </div>
<p><br /></p>
<p id="reply-intro">Le 07-09-2021 15:22, Jérôme Godbout a écrit :</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<style type="text/css">@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4}
@font-face
        {font-family:"var(--ff-mono)";
        panose-1:2 11 6 4 2 2 2 2 2 4}

#replybody1 p.v1MsoNormal, #replybody1 li.v1MsoNormal, #replybody1 div.v1MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
#replybody1 a:link, #replybody1 span.v1MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline}
#replybody1 span.v1EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext}
#replybody1 .v1MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt}
#replybody1 div.v1WordSection1
        {page: unset}</style>
<div lang="EN-CA" style="word-wrap: break-word;">
<div class="v1WordSection1">
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: black; border: none windowtext 1.0pt; padding: 0cm;">You can put your aplicaiton into the exclude list, sorry though it was mentionned into the microowft page, but here is the registry key:</span></p>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: black; border: none windowtext 1.0pt; padding: 0cm;"> </span></p>
<p class="v1MsoNormal" style="vertical-align: baseline;"><span style="font-size: 10.0pt; font-family: 'var(--ff-mono)',serif; border: none windowtext 1.0pt; padding: 0cm;">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FTH\ExclusionList\myapp.exe</span></p>
<p class="v1MsoNormal" style="vertical-align: baseline;"><span style="font-size: 10.0pt; font-family: 'var(--ff-mono)',serif; border: none windowtext 1.0pt; padding: 0cm;"> </span></p>
<p class="v1MsoNormal" style="vertical-align: baseline;"><span style="font-size: 10.0pt; font-family: 'var(--ff-mono)',serif; border: none windowtext 1.0pt; padding: 0cm;">Change myapp.exe for your actual application.</span><span style="font-size: 10.0pt; font-family: 'var(--ff-mono)',serif;"></span></p>
<p class="v1MsoNormal"> </p>
<p class="v1MsoNormal"> </p>
<div style="border: none; border-top: solid #B5C4DF 1.0pt; padding: 3.0pt 0cm 0cm 0cm;">
<p class="v1MsoNormal" style="margin-bottom: 12.0pt;"><strong><span style="font-size: 12.0pt; color: black;">From: </span></strong><span style="font-size: 12.0pt; color: black;">Jérôme Godbout <jgodbout@dimonoff.com><br /><strong>Date: </strong>Tuesday, September 7, 2021 at 9:07 AM<br /><strong>To: </strong>maitai <maitai@virtual-winds.org>, Interest@qt-project.org <Interest@qt-project.org><br /><strong>Subject: </strong>Re: [Interest] qt and Windows tolerance heap</span></p>
</div>
<p class="v1MsoNormal">The tolerant heap only make workaround for actual bug. Disable the tolerant heap for your developers (this should be a system options when developer mode is enabled directly into Windows but sadly you have to do it manually). This will show where your bug is and will appear on dev workstation before they appear on the clients.</p>
<p class="v1MsoNormal"> </p>
<p class="v1MsoNormal">The "myth" of try to launch it again on windows is not really a myth, it come from this feature, the OS try to fix the heap allocation, but the application is still broken. You can also disable your application from using it during the installer.</p>
<p class="v1MsoNormal"> </p>
<p class="v1MsoNormal">To disable:</p>
<p class="v1MsoNormal"><a href="https://docs.microsoft.com/en-us/windows/win32/win7appqual/fault-tolerant-heap?redirectedfrom=MSDN" target="_blank" rel="noopener noreferrer">https://docs.microsoft.com/en-us/windows/win32/win7appqual/fault-tolerant-heap?redirectedfrom=MSDN</a></p>
<p class="v1MsoNormal"> </p>
<p class="v1MsoNormal"> </p>
<div style="border: none; border-top: solid #B5C4DF 1.0pt; padding: 3.0pt 0cm 0cm 0cm;">
<p class="v1MsoNormal" style="margin-bottom: 12.0pt;"><strong><span style="font-size: 12.0pt; color: black;">From: </span></strong><span style="font-size: 12.0pt; color: black;">Interest <interest-bounces@qt-project.org> on behalf of maitai <maitai@virtual-winds.org><br /><strong>Date: </strong>Tuesday, September 7, 2021 at 5:32 AM<br /><strong>To: </strong>Interest@qt-project.org <Interest@qt-project.org><br /><strong>Subject: </strong>[Interest] qt and Windows tolerance heap</span></p>
</div>
<div>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';">Hi,<br /><br />I have some users (mainly beta testers) that are suffering from "Windows Tolerant Heap" (<a href="https://docs.microsoft.com/en-us/windows/win32/win7appqual/fault-tolerant-heap" target="_blank" rel="noopener noreferrer">https://docs.microsoft.com/en-us/windows/win32/win7appqual/fault-tolerant-heap</a>). The consequence of this being activated after some crashes is that the application becomes very slow, plus some mysterious crashes occur randomly deep inside qt event queue manager.</span></p>
</div>
<div>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p>
</div>
<div>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';">I know how to remove the app from Tolerant Heap with an elevated command prompt.</span></p>
</div>
<div>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p>
</div>
<div>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';">My question is: is there a way from inside the application to detect the app is running in this mode, so I can prompt the user to contact us for instance?</span></p>
</div>
<div>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p>
</div>
<div>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';">Thanks for any insight</span></p>
</div>
<div>
<p class="v1MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';">Philippe Lelong</span></p>
</div>
</div>
</div>
</div>
</blockquote>
</body></html>