Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all articles
Browse latest Browse all 704

New Post: Error in finding leak caused by array deleted by non-array delete

$
0
0
Hi, All. I met a problem with non-array deleting when using VLD. VLD will not report memory leak for some simple code like: int* pt = new int[100]; delete pt;

I have google search a lot with this issue. It seems that I have to set ValidateHeapAllocs = yes in the VLD.ini file. But it does not seem to take effect.


Any idea about this issue? Thanks.

Viewing all articles
Browse latest Browse all 704

Trending Articles