Giter Site home page Giter Site logo

MinGW Bug about nvwa HOT 5 CLOSED

h0tc0d3 avatar h0tc0d3 commented on September 1, 2024
MinGW Bug

from nvwa.

Comments (5)

adah1972 avatar adah1972 commented on September 1, 2024

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.

h0tc0d3 avatar h0tc0d3 commented on September 1, 2024

mvwa.zip
Attached simple cmake project. Bug was in this toolchain https://sourceforge.net/projects/mingw-w64/

from nvwa.

adah1972 avatar adah1972 commented on September 1, 2024

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.

h0tc0d3 avatar h0tc0d3 commented on September 1, 2024

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.

adah1972 avatar adah1972 commented on September 1, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.