Are images automatic freed at program termination?
Blitz3D Forums/Blitz3D Beginners Area/Are images automatic freed at program termination?
| ||
Do we have to free each image, font, etc before ending the program? Or is all of that released automatically? Thanks! |
| ||
All resources are freed automatically when the program ends. But, tt is a good idea to track all your resources so that they are easy to free/load en masse for stuff like level changing. |
| ||
Most importantly in my opinion, it is good programming practice to check everything you allocate, and manually free all resources taken before terminating a program. |
| ||
Yeah, its the mid-game stuff you have to watch. So, yeah, good programming practice is the key. |
| ||
Thanks everyone! |