You will use the following specific GFlags commands.
| Command | Meaning |
|---|---|
| GFlags /p | Displays the state of the page heap options. |
| GFlags /p /enable Program.exe | Enables standard heap options for Program.exe. GFlags inserts a suffix pattern into the heap after each allocation by your program. Your program will use somewhat more memory and run somewhat slower than normal. |
| GFlags /p /enable Program.exe /full | Enables full heap options for Program.exe. GFlags inserts an entire page of protected memory into the heap after each allocation by your program. Your program will use much more memory and run much slower than normal. |
| GFlags /p /enable Program.exe /dlls Library1.dll,Library2.dll,... | Enables standard heap options for Program.exe and all dynamic link libraries (DLLs) not listed after the /dlls option. In addition, it enables full heap options for the listed DLL or DLLs. Separate items in the DLL list by commas. Your program will run faster and use less memory than it would if you had used the /full option. |
| GFlags /p /enable Program.exe /debug Debugger.exe | Enables standard heap options for Program.exe. In addition, it designates Debugger.exe as the debugger to automatically run if the program crashes. The /debug option comes after /full or /dlls in the command line. |
| GFlags /p /disable Program.exe | Disables all heap options for Program.exe. You should do this at the end of each debug session. Otherwise, every user of the program after you will experience slow performance. |
| GFlags | Invokes a dialog box that allows you to review and change the current GFlags settings. |
This Help system was created using a trial version of Adobe RoboHelp. Files generated with the trial version are intended for evaluation purposes only and may not be used or distributed for any other purpose.