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 / Avoiding memory leaks with arrays

Author
Message
Jambo B
14
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 25th Oct 2015 10:36
A quick question, if you don't mind.

Let's say I have a UDT array which I'm accessing like this:

Box[5].SomeData[4].SomeOtherData[10].sVar

If I call Box.remove[5], will all the data in the child arrays be deleted as well, or do I have to loop through the child arrays, removing their contents before I call Box.remove[5]?

Thanks,

James
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Oct 2015 11:25 Edited at: 25th Oct 2015 11:26
ui, i would say agk should do this free for you.
because it removes this structs it must free the memory too.
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Jambo B
14
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 25th Oct 2015 16:15
Thanks

James

Login to post a reply

Server time is: 2024-05-22 18:07:07
Your offset time is: 2024-05-22 18:07:07