Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to turn GCStress on in Windows 7?
    primarykey
    data
    text
    <p>I am debugging a <a href="http://en.wikipedia.org/wiki/Garbage_collection_%28computer_science%29" rel="noreferrer">GC</a> heap corruption and came to the step where I want to try running the program under WinDbg + PageHeap + AppVerifier + GCStress.</p> <p>I found in the article <em><a href="http://social.msdn.microsoft.com/Forums/en/clr/thread/0fcb5bb1-0cd8-40e4-96d9-f0cb8b6cdbdf" rel="noreferrer">Software crash: faulting module mscorwks.dll, version 1.1.4322.2379</a></em> that I can enable GCStress like this:</p> <pre><code>reg.exe add "HKLM\SOFTWARE\Microsoft\.NETFramework" /f /v HeapVerify /t REG_DWORD /d 1 reg.exe add "HKLM\SOFTWARE\Microsoft\.NETFramework" /f /v StressLog /t REG_DWORD /d 1 reg.exe add "HKLM\SOFTWARE\Microsoft\.NETFramework" /f /v GCStress /t REG_DWORD /d 3 reg.exe add "HKLM\SOFTWARE\Microsoft\.NETFramework" /f /v FastGcStress /t REG_DWORD /d 2 </code></pre> <p>(I am trying this method. It takes the program forever to launch. I deleted the last two entries from the registry to have it work, probably something is wrong with the approach itself.)</p> <p>Or the article <em><a href="http://social.msdn.microsoft.com/Forums/en/clr/thread/33920b39-690c-42c8-b04a-0f1f7176835a" rel="noreferrer">Access Violation in .NET 4 Runtime in gc_heap::garbage_collect with no unmanaged modules</a></em> described the other method:</p> <pre><code>(DWORD) StressLog = 1 (DWORD) LogFacility = 0xffffffff (DWORD) StressLogSize = 65536 </code></pre> <p>Which way is correct or is there another <em>correct</em> way?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload