Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Patchin 'em up

Sign in to follow this  
Stephen R


Well I finally got that stupid memory leak patched up. It was caused by my use of virtual inheritance, which I was so proud of yesterday. I restructured my code and now there are no more leaks - yet.

A few more days and my engine should be fully tested. I think I'm going to start with the graphics subsystem and make sure everything is working as it should.
Sign in to follow this  


Recommended Comments

The crt functions, specifically _CrtDumpMemoryLeaks() and _CrtSetBreakAlloc()

I'm using a ref counting class similar to the one described in Superpig's enginuity articles and it really didn't like dealing with classes that used virtual inheritance. I think it was something to do with the memory layout of the classes but I couldn't figure out what.

Share this comment

Link to comment

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
  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!