Jump to content
  • Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

119 Neutral

About marius1930

  • Rank
  1. marius1930

    Can you guess what is leaking?

    #include <crtdbg.h>   First line of your main: _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );   That should give you the allocation ID.   To set a breakpoint on the allocation ID either set a breakpoint on {,,msvcr100d.dll}_crtBreakAlloc   (the dll name here will change depending on your visual studio/etc) The alternative is to call _CrtSetBreakAlloc(n); in your code.     If you want to go all the way and get file:line numbers on the leak, try: #define new new( _NORMAL_BLOCK, __FILE__, __LINE__)        Good luck! (And if you happen to not be using MSVC, the leaks is the least of your problems)   Edit: Hint hint hint: Notice how your deconstructor is not virtual. Look it up! ;)
  • 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!