Archived

This topic is now archived and is closed to further replies.

khun_za

My Hardisk is Full When run my Game

Recommended Posts

khun_za    122
I dont know why my hardisk is alway Full when i run my game and game is Exit automatically. i check all my code to free memory but i dont find any thing tofix would you answer howto free memory when running game (my game is like tetris but it is addline in buttom of screen) my algorithm is to create all block with pointer to struct and use it swap it my game scan all pointer to struct and paint in screen with information in struct help me

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Obviously, you are having a mem leak. Get a mem tracknig util, search google.

Are you using C++? Then new/delete is the ticket.
C? Then malloc/free. Note, DO NOT MIX & MATCH! IE, don''t use malloc with delete...

If you want more help, then post source



Share this post


Link to post
Share on other sites