Is there a way to unload surface such that they can free up memory used by ocupied images.
I am aware of the delete function but once deleted the variable cannot be used again.
Currently, when I load other images to the same variable, system memory increase rapidly until application hang due to lack of memory.
I use GIF images in my application.
I have also tried preload all images at the begining of the application, but the memory used is unacceptable (too big 12mb).
Is m_bOwnMemory useful in this situation, and how to use it?
thanks
I am aware of the delete function but once deleted the variable cannot be used again.
Currently, when I load other images to the same variable, system memory increase rapidly until application hang due to lack of memory.
I use GIF images in my application.
I have also tried preload all images at the begining of the application, but the memory used is unacceptable (too big 12mb).
Is m_bOwnMemory useful in this situation, and how to use it?
thanks