How do I close the game properly? Freeing Allocated Memory

You must understand the Game Editor concepts, before post here.

How do I close the game properly? Freeing Allocated Memory

Postby EvanBlack » Mon Oct 10, 2011 10:47 pm

Where do I put the function call that frees allocated memory when the game is closing?
(\__/) ( Soon... The world)
(O.o )< will be mine!____)
(> < )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bunny Overlord 2012!
EvanBlack
 
Posts: 202
Joined: Fri Sep 30, 2011 10:17 am
Score: 19 Give a positive score

Re: How do I close the game properly? Freeing Allocated Memo

Postby skydereign » Tue Oct 11, 2011 1:11 am

You would need to put the free functions where you call the ExitGame. So, if you use escape, disable the exit on escape (in the game properties), and add an event to the view. Call the free functions, then the ExitGame.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron