memory leak (tutorial 10)
In the tutorial 10 () after the instruction
sector1.triangle = new TRIANGLE[numtriangles];
I would like to know when that dynamic memory is freed?
never ? :)
- Iliak -
[ ArcEngine: An open source .Net gaming framework ]
[ Dungeon Eye: An open source remake of Eye of the Beholder II ]
[ ArcEngine: An open source .Net gaming framework ]
[ Dungeon Eye: An open source remake of Eye of the Beholder II ]
so can i free that memory in order to avoid a memory leak? I have tried to free it before the return statement of the SetUpWorld function but it doesn't work any more
You can't free the memory at the end of SetUpWorld because you still need the data elsewhere.
try to free the memory at the end of winMain.
try to free the memory at the end of winMain.
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement