Jump to content
  • Advertisement
Sign in to follow this  
Coluna

MMGR error- xdebug

This topic is 4445 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all; I use Paul Nettle MMGR to check memory leaks and so on. Before i chenge from vc6.0 to vs2003, all works fine...but now i got some errors like this \Vc7\include\xdebug(29) : error C2544: expected ')' for operator '()' in
_CRTIMP2 void * __cdecl operator new(size_t,
	const std::_DebugHeapTag_t&, char *, int)
		_THROW1(std::bad_alloc);	// allocate from the debug CRT heap

_CRTIMP2 void * __cdecl operator new[](size_t,
	const std::_DebugHeapTag_t&, char *, int)
		_THROW1(std::bad_alloc);	// allocate array from the debug CRT heap

_CRTIMP2 void __cdecl operator delete(void *,
	const std::_DebugHeapTag_t&, char *, int)
		_THROW0();	// delete if new for debug CRT heap fails
...


The file where the error appears is <xdebug>, that is included due to <fstream>...can anybody helps me?

Share this post


Link to post
Share on other sites
Advertisement
Always include MMGR after stl related things.

If you can't avoid it, include nommgr.h before your stl includes.

Share this post


Link to post
Share on other sites
To expand on what mldaalder said, there's details on the order you should include things in in mmgr.cpp (Or it may be in the header, I don't recall offhand).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!