ITS THE GRAPHICS :(
Okay, so the "memory leak" I thought I had was being caused by the graphics being used on buttons and backgrounds. Why is this happening?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 5, 2011, 3:50 PM
Sam HobbsPosted Mar 5, 2011, 4:26 PM
I think that "graphics we created" does not answer the question. Were they created during execution of the program or created separately and then loaded and used by the program?
Alternatively to calling Dispose, if it is possible to create the object once and use the same object many times then that would be the most efficient. The next best solution is to do as suggested already; create an object then dispose of it later. I assume you were creating the object many times but not disposing. So one possibility is to add a dispose as suggested but another possibility is to move the location where the object creation occurs.
patrickPosted Mar 5, 2011, 4:01 PM
patrickPosted Mar 5, 2011, 3:51 PM