visual-leak-detector

Using Visual Leak Detector

泄露秘密 提交于 2019-12-11 05:51:51
问题 I have C++ code that crashes randomly. In the code I have used some of the Qt libraries. The compiler is MSVS 2010. Based on some suggestions that this could be due to memory leaks, I started looking in this using Visual Leak Detector. I am very new to Visual Leak Detector and memory leak detection. Here is the code in main.cpp: int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); } And also the MainWindow constructor looks like this:

Programm parallel QThread is creating a memory leak on application quit

…衆ロ難τιáo~ 提交于 2019-12-10 20:07:33
问题 I have a bigger project, with a GUI and I want to manage some files in the background. I've implemented a new thread for this task and on runtime, everything works great. But as soon as I quit the application visual-leak-detector finds 3-7 memory leaks. I separated my threading code and created a new project to check this with a minimal code example, but I'm still not able to fix my issue. I think it has something to do with the event loop of the main program. Maybe the loop doesn't process

Visual leak detector (VLD) displays empty call stack

你离开我真会死。 提交于 2019-12-07 09:08:56
问题 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 144 bytes Call Stack (TID 1600): Data: B8 0A 80 01 01 00 00 00 7F 7D 00 00 00 00 00 00 ........ .}...... 00 00 00 00 A4 81 1A 00 17 00 00 00 A8 AE EA 4E ........ .......N 40 EE 22 53 00 00 70 42 FB 19 CC BD D4 E7 2E 00 @."S..pB ........ CD CD CD CD 80

Visual Leak Detector not reporting leaks

耗尽温柔 提交于 2019-12-05 12:48:42
问题 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 my include directories and C:\Program Files (x86)\Visual Leak Detector\lib\Win32 to my library directories (both for debug mode). I build and run the following simple program using the debug menu (or hitting f5): #include <iostream> #include <vld.h

Visual leak detector (VLD) displays empty call stack

不羁的心 提交于 2019-12-05 12:13:05
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 144 bytes Call Stack (TID 1600): Data: B8 0A 80 01 01 00 00 00 7F 7D 00 00 00 00 00 00 ........ .}...... 00 00 00 00 A4 81 1A 00 17 00 00 00 A8 AE EA 4E ........ .......N 40 EE 22 53 00 00 70 42 FB 19 CC BD D4 E7 2E 00 @."S..pB ........ CD CD CD CD 80 2D FB 6E A0 4A B2 69 20 8D 00 54 .....-.n .J.i...T D8 6B 6A 54 00 CD CD CD 38 DB 81 01 40 EE 22 53

Visual Leak Detector not reporting leaks

本秂侑毒 提交于 2019-12-03 23:49:42
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 my include directories and C:\Program Files (x86)\Visual Leak Detector\lib\Win32 to my library directories (both for debug mode). I build and run the following simple program using the debug menu (or hitting f5): #include <iostream> #include <vld.h> //visual leak detector using namespace std; int main() { for (int i = 0; i < 1000000; i++) int *ptr =

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

扶醉桌前 提交于 2019-11-30 06:27:26
问题 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 with a line number, but I am always reported the text below. It has all the component of a leak description ( block type, memory address, data, etc..) except for the file name and the line number. If it is a real leak? If yes do you know why the

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

一世执手 提交于 2019-11-28 19:00:05
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 with a line number, but I am always reported the text below. It has all the component of a leak description ( block type, memory address, data, etc..) except for the file name and the line number. If it is a real leak? If yes do you know why the file/line are not reported? In the meantime I am having a look also at this url Thanks Detected memory

Visual C++ - Memory Leak Detection

风格不统一 提交于 2019-11-28 06:34:22
Any suggestions? This SO post talks about Visual Leak Detector , but I'm looking for other tools. Also, please don't recommend this . I've used Visual Leak Detector quite recently and it works pretty well. It's very simple to build it in (just include vld.h ) and doesn't require any instrumentation. I found that I needed to write a couple of scripts though to parse the output into something more useful for my purposes (it is crying out for a decent GUI). Note the new website -- the project is being actively maintained on Codeplex -- the Codeproject link is very old. Try Deleaker or DevPartner