简体   繁体   English

VS2017中的_crtBreakAlloc

[英]_crtBreakAlloc in VS2017

I try to find out memory leaks using CRT. 我尝试使用CRT找出内存泄漏。 I'm using Visual Studio 2017 Community. 我正在使用Visual Studio 2017社区。 I followed the official help , but its not working. 我遵循了官方帮助 ,但无法正常工作。

I tried different inputs in Watch window. 我在“监视”窗口中尝试了不同的输入。 That's what I get: 那就是我得到的:

_crtBreakAlloc identifier "_crtBreakAlloc" is undefined _crtBreakAlloc标识符“ _crtBreakAlloc”未定义

I tried suggestions I've found in another question and got the same results: 我尝试了在另一个问题中发现的建议,并得到了相同的结果:

(int*){,,ucrtbased.dll}_crtBreakAlloc identifier "_crtBreakAlloc" is undefined (int *){,, ucrtbased.dll} _crtBreakAlloc标识符“ _crtBreakAlloc”未定义

(int*){,,ucrtbased.dll}__crtBreakAlloc identifier "__crtBreakAlloc" is undefined (int *){,, ucrtbased.dll} __ crtBreakAlloc标识符“ __crtBreakAlloc”未定义

Debug build, runtime library Multi-threaded Debug DLL (/MDd). 调试构建,运行时库多线程调试DLL(/ MDd)。

I tried calling function _CrtSetBreakAlloc and it works. 我尝试调用函数_CrtSetBreakAlloc ,它可以工作。

So is re-compiling and calling this function the only option? 那么重新编译并调用此函数是唯一的选择吗? Or am I missing something obvious? 还是我缺少明显的东西?

Try: 尝试:

{,,ucrtbased.dll}_crtBreakAlloc

Make sure symbols are loaded (Tools / Options / Debugging / Symbols). 确保已加载符号(工具/选项/调试/符号)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM