Jump to content
  • Advertisement

Question regarding object deletion

Recommended Posts

I use a device per window and create my objects out of it. If I close on window I dispose all objects (I hope) and I dispose the device.

However, my memory usage seems to keep growing.  I check it with: SharpDX.Diagnostics.ObjectTracker.FindActiveObjects() and it says Count = 0.

I wonder what I can do or If I can use a method or something to clean everything and flush the commands regarding this device. I want a clean memory state back or no leak and

endless grwoing on reopening the window till the memory usage crashes the application.


Do you have any hints checking or fixing this?

Ofc. it could still be that I am missing a dispose, but I checked with:


and shows me nearly no objects or the objects that should be deleted right after I delete or dispose the device.

No clue why it grows so much, seems like the managed memory is growing too.


Thanks in advance !

Share this post

Link to post
Share on other sites

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!