Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
LPDIRECTDRAWSURFACE :: Release() ends everything
I'm trying to deallocate images dynamically (during runtime). For example, when the title screen clears, images and buttons should be deleted. The same should occur between stages. My game contains many (50+ MB) images, and it would be inefficient otherwise. However, LPDIRECTDRAWSURFACE :: Release() ends the program immediately. In the game loop, should released (0/NULL) images not be drawn? Remember, I'm releasing surfaces used as images not the main or back buffers. No one yet has been able to answer this question, though it sounds very simple. Help will be returned.