diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /devtools/EnableSrcdsAppVerifier.bat | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'devtools/EnableSrcdsAppVerifier.bat')
| -rw-r--r-- | devtools/EnableSrcdsAppVerifier.bat | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/devtools/EnableSrcdsAppVerifier.bat b/devtools/EnableSrcdsAppVerifier.bat new file mode 100644 index 0000000..1625540 --- /dev/null +++ b/devtools/EnableSrcdsAppVerifier.bat @@ -0,0 +1,12 @@ +@echo Created per the instructions at https://intranet.valvesoftware.com/wiki/index.php/AppVerifier_for_finding_memory_bugs_and_other_problems +@echo Enabling AppVerifier with reasonable settings for srcds +@echo This must be run with administrator privileges + +@rem The settings are created using the App Verifier UI and can be exported to the .reg file +@rem with this command: +@rem REG EXPORT "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\srcds.exe" srcdsAppVerifierSettings.reg /y + +@rem Import the App Verifier settings +reg import %~dp0srcdsAppVerifierSettings.reg +@rem Increase the size of the database of alloc/free stacks from 8 MB (too small) to 100 MB. +reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\srcds.exe" /v StackTraceDatabaseSizeInMB /t REG_DWORD /d 100 /f |