Memory leak isues
Blitz3D Forums/Blitz3D Programming/Memory leak isues
| ||
Hello, I am have a small memory leak in my program. I allocated memory locally for an image in a function. I thought when the program leaves the function it cleans up all the local variables. But, this is false local variables still stay in memory and has to be cleaned up mauually. I still have memory leaks in my program. Is there anything else I should clean up besides local variables that hold images?? I will appreciate any help |
| ||
Don't use local varibles for images. Because, you need to free them before you leave the function, or they will be lost foreve, taking up memory :) |
| ||
Cool thank you...Is there anything else I should watch out for?? |