Memory issues

carlw

Member
Joined
Dec 30, 2004
Messages
18
Programming Experience
Beginner
Hi,

I am using a number of offscreen DC's in which I draw various elements of my final scene. I BitBlt a part of each to another DC and then finally BitBlt to the screen.

There are a large number of different scenes which the user can load and reload as the game runs.

My problem is that with each new scene loaded the memory used by the preceeding scene is not released. Every time a scene is exited the DC's are deleted and the form is closed. But the memory is still not released.

Any help would be appreciated

Thanks

Carl White
 
The first thing to do is make sure you are disposing all objects that require it. If any object you are using has a Dispose method then you should call it when you have finished with the object.
 
Back
Top