Jump to content
  • Advertisement

marius1930

Member
  • Content count

    337
  • Joined

  • Last visited

Community Reputation

119 Neutral

About marius1930

  • Rank
    Member
  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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!