Program clean up....
Blitz3D Forums/Blitz3D Programming/Program clean up....
| ||
Hello, I am trying to figure out if there is an easy way to release all resources when the program exits Also wanted to know if there is a way to know when my blitz program window is minimized or not..I will appreciate any help |
| ||
loadall() While not keyhit(1) Renderworld Updateworld Flip Wend Freeall() Endgraphics() function loadall() image = loadimage "x.bmp" sound = loadsound "x.wav" end function function freeall() freeimage(image) freesound(sound) end function |
| ||
Or just ClearWorld. ;) Dont think you can check window status in B3D, though. Not without using a dll, or something. |
| ||
Erm...EndYAN |
| ||
Like Yan says, program resources are cleared automatically when the program ends. |