A little trouble here, help needed.
Basically what happens in my program is that after a little time, the bitmaps from my program simply disappear!.. leaving behind a very blank and naked background with just the GDI figures left behind... (colours from the rectangles also disappear, probably deleting the brushes).
Why is this happening ?

I am guessing some sort of a memory glitch..

Any help will be appreciated.
Thank You