Sign in to follow this  

MMGR error- xdebug

This topic is 4260 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
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
Thanks guys....i forgot to change the order of my includes...see ya!

Share this post


Link to post
Share on other sites

This topic is 4260 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this