Questions tagged [visual-leak-detector]

An open-source memory leak detection system for Visual C++

Visual Leak Detector is an open-source memory leak detection system for Visual C++. It outputs memory leak reports at the end of the debugging session, which includes the full call stack showing how any leaked memory blocks were allocated.

Download

52 questions
19
votes
5 answers

"The application was unable to start correctly" after including vld.h

I included vld.h, vld.lib and vld_x86.dll on my Win32 project with visual studio 2010. It builds properly but when I execute, it crashes with this message: "The application was unable to start correctly (0xc0150002). Click OK to close the…
Zennichimaro
  • 5,236
  • 6
  • 54
  • 78
14
votes
1 answer

Visual Leak Detector not reporting leaks

I am a bit new to using Visual Studio 2013 and am trying to get Visual Leak Detector (Version 2.3) working so that I can check my projects for memory leaks. I've got it installed and have added C:\Program Files (x86)\Visual Leak Detector\include to…
12
votes
2 answers

Visual Leak Detector with Visual Studio 2017: no source code line numbers

I try to use Visual Leak Detector with Visual Studio 2017 with Platform Toolset "Visual Studio 2017" I have set the include directory and the library directory. Generating debug infos is on. Symbols for the exe are loaded. (It works if i change the…
12
votes
10 answers

Visual C++ - Memory Leak Detection

Any suggestions? This SO post talks about Visual Leak Detector, but I'm looking for other tools. Also, please don't recommend this.
Jacob
  • 34,255
  • 14
  • 110
  • 165
10
votes
4 answers

Visual Leak Detector throwing "Access violation reading location" on ntdll.dll

When I include: #include ; in my stdafx.h and run my program it says that Visual Leak Detector 2.5 is installed. I can run my program just fine but when it exits I get this error: Exception thrown at 0x00007FFFB7F57FE7 (ntdll.dll) in…
Jelmer
  • 949
  • 3
  • 10
  • 23
8
votes
7 answers

memory leak detecting in C++ with/without Visual Leak Detector

I want to detect memory leaks of my C++ program in Windows. I read the documentation also on MSDN about mermoy leak detection and I also started using Visual Leak Detector. I have a doubt about the reporting of the leaks. I am expecting a file name…
user311906
  • 1,575
  • 2
  • 14
  • 17
8
votes
2 answers

Heap corruption - "Free Heap block 61af0f0 modified at 61af194 after it was freed" C++

In my application I'm getting this error: HEAP[App.exe]: HEAP: Free Heap block 61af0f0 modified at 61af194 after it was freed Here is a call stack: ntdll.dll!_RtlpBreakPointHeap@4() Unknown ntdll.dll!@RtlpAllocateHeap@24() Unknown …
7
votes
2 answers

Visual Leak Detector reports 40 bytes leaked for one int*

Here's my program #include using namespace std; int main() { int* p = new int(100); } Visual Leak Detector Report Visual Leak Detector Version 2.3 installed. WARNING: Visual Leak Detector detected memory leaks! ---------- Block 1 at…
user1
  • 4,031
  • 8
  • 37
  • 66
6
votes
1 answer

Visual Leak Detector not finding leaks VS2013

I can't seem to make VLD catch any memory leaks no matter what I tried. Any ideas why ? Here snippet of the output too: Visual Leak Detector Version 2.4RC2 installed. The thread 0x5748 has exited with code 0 (0x0). The thread 0x2c70 has exited with…
user1529412
  • 3,616
  • 7
  • 26
  • 42
5
votes
1 answer

How to install Visual Leak Detector (VLD) on Visual Studio 2019?

I run setup file from Releases, and tried to follow official guide, but it has instructions for older versions only (Visual C++ 2010/2012/2013). I didn't find menus mentioned there. So how do I install vld on VS 2019?
mariohuq
  • 163
  • 1
  • 1
  • 10
5
votes
2 answers

Visual leak detector (VLD) displays empty call stack

I'm using visual leak detector. It displays the call stack properly for some leaks, but I get some outputs that the call stack is empty like this: ---------- Block 131148 at 0x69B3AF68: 144 bytes ---------- Leak Hash: 0xCA7D251C, Count: 1, Total…
Hamed Afshar
  • 173
  • 2
  • 14
5
votes
2 answers

COM registration fails with error code 0xC0000005

I'm working on a legacy project which contains several C++ COM Dlls. Every time the solution is built on debug configuration, the build process gives errors for each COM project: Error 10 error MSB3073: The command " regsvr32 /s /c…
moranlf
  • 554
  • 5
  • 19
5
votes
1 answer

Attaching Visual leak detector to a process running as windows service

How to use Visual Leak Detector to attach to a process running as a windows service. If someone has used this tool to detect memory leaks for service, please let me know the procedure. I am including "vld.h" in my source file as in the documentation…
4
votes
0 answers

Visual leak detector unable to start

I am having huge memory leaks in my MFC program which is quite old. Wanted to use visual leak detector to get an idea of the location of the problem. I downloaded and installed VLD v2.4rc2. The include and library paths are automatically added to VS…
3
votes
3 answers

GetOpenFileName never returns when compiled in debug mode (VS2010)

When I compile my program in debug mode GetOpenFileName(&ofn) never returns. It works perfectly fine in release mode. The only difference I can spot is that a lot of things are being optimized away in release mode. OPENFILENAME ofn; TCHAR…
1
2 3 4