Jump to content
Sign in to follow this  
  • entries
    223
  • comments
    165
  • views
    79671

Patchin 'em up

Sign in to follow this  
Stephen R

106 views

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  


2 Comments


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.

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!