Comments (5)
You did include a complete test case, so I have to guess a bit. Did you put the inclusion of "nvwa/debug_new.h" after all other includes, esp. the system include files?
from nvwa.
mvwa.zip
Attached simple cmake project. Bug was in this toolchain https://sourceforge.net/projects/mingw-w64/
from nvwa.
Just as I guessed, the code includes string.h and other stuff after including debug_new.h. Errors would occur any time the included file invokes operator new
(as versus a simple new
operator). Include debug_new.h last.
from nvwa.
Yep. QuikLua.h load string.h thread.h mutex, I can not remove them. Maybe have it any decision?
Leak found, works in MSVC. Mingw throw error.
#include <Windows.h>
#include "Lua.h"
#ifdef _DEBUG
#include "nvwa/debug_new.h"
#endif
#include "QuikLua.h"
#include "Helper.h"
Work in both compilators, but leak have not found.
#include <Windows.h>
#include "Lua.h"
#include "QuikLua.h"
#include "Helper.h"
#ifdef _DEBUG
#include "nvwa/debug_new.h"
#endif
from nvwa.
Leaks should always be found, regardless of whether debug_new.h is included or not. The difference is whether the file/line information can be reported or not.
from nvwa.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvwa.