It also works.
Thanks for the solution!
Type: Posts; User: happyCodeBird
It also works.
Thanks for the solution!
Yes. It is very helpful.
By the way, I think the function should be:
_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF);
Thanks very much for pointing out the way MSVC debug works!
Although the data is deleted, MSVC shows that the following code has a memory leak issue. Does anyone know how to fix the memory leak bug in the class? Thanks.
#define _CRTDBG_MAP_ALLOC...