Jump to content
  • Advertisement
Sign in to follow this  
fooman_69

memory leak tracing

This topic is 4843 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

hiya, If I have carefully traced through my app and figured that I have cleaned up all my messes, deallocated all memory, etc., is there a good way to figure out if you missed anything? Is there a way to figure out if your program is leaking memory that you haven't forseen happening?

Share this post


Link to post
Share on other sites
Advertisement
Thanks!
But I am not getting 111 compile errors. I read the read-me file, but I cannot find the solution.
Am I #include-ing in the right order?

#include <cstdlib> //random numbers
#include <ctime> //seed the srand()
#include <IL/il.h>
#include <IL/ilu.h>
#include <IL/ilut.h>

#include <mmgr.h>

#include "video.h"

Share this post


Link to post
Share on other sites
Could be the order of include files.
The comments in mmgr.cpp say....

// Include file dependencies are _very_important_ for getting the
// MMGR to integrate nicely into your application. Be careful if
// you're including standard includes from within your own project
// includes; that will break this very specific dependency order.
// It should look like this:
//
// #include <stdio.h> // Standard includes MUST come first
// #include <stdlib.h> //
// #include <streamio> //
//
// #include "mmgr.h" // mmgr.h MUST come next
//
// #include "myfile1.h" // Project includes MUST come last
// #include "myfile2.h" //
// #include "myfile3.h" //



Are
#include <IL/il.h>,
#include <IL/ilu.h> and
#include <IL/ilut.h>
"standard" includes?

Share this post


Link to post
Share on other sites
Quote:
Original post by Matt Apple
Could be the order of include files.
The comments in mmgr.cpp say....
*** Source Snippet Removed ***

Are
#include <IL/il.h>,
#include <IL/ilu.h> and
#include <IL/ilut.h>
"standard" includes?


Yes, they belong to the DevIL library. What the documentation means by standard includes is basically everything that you are not developing yourself, since mmgr should not interfere with any overloads of operator new, operator delete &c. that may exist in third party libraries.


jfl.

Share this post


Link to post
Share on other sites
No they are errors such as
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29): error C2040: 'operator`()'' : 'void *' differs in levels of indirection from 'int'


I have tried all different configurations of #including it. No luck. Always the same errors in xdebug and new.

Share this post


Link to post
Share on other sites
That is my openGL noise.
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include "globals.h"
#include "sprite.h"
#include "entity.h"[\code]Those are included in it. I basically have NOTHING in the sprite and entity class except <windows.h>

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!