Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Where should I add the code about release? in Tier2

Author
Message
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 2nd Jan 2012 08:45


I use new to create some objects, I need to delete them at the end of the game. but I can't find the right position. I put a break point in app.End() ,but it doesn't work.

The Miracrea Games
bjadams
AGK Backer
15
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 2nd Jan 2012 09:33
I think that you have to put that in

void app::End
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 6th Jan 2012 12:26
Yes indeed Also ensure the pointer is global so the End function knows which one you refer to.

I drink tea, and in my spare time I write software.
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 6th Jan 2012 12:28
@LeeBamber, I see. Thank you.

The Miracrea Games

Login to post a reply

Server time is: 2024-03-28 20:44:19
Your offset time is: 2024-03-28 20:44:19