Skip to content

crtsetdbgflag.md: _CrtCheckMemory is not called by default #4060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/c-runtime-library/reference/crtsetdbgflag.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ You can specify how often the C run-time library performs validation of the debu
|`_CRTDBG_CHECK_EVERY_1024_DF`|1024|
|`_CRTDBG_CHECK_DEFAULT_DF`|0 (by default, no heap checks)|

By default, **`_CrtCheckMemory`** is called once every 1,024 times you call **`malloc`**, **`realloc`**, **`free`**, and **`_msize`**.
By default, **`_CrtCheckMemory`** is never called.

For example, you could specify a heap check every 16 **`malloc`**, **`realloc`**, **`free`**, and **`_msize`** operations with the following code:

Expand Down