Jump to content
Sign in to follow this  
Pillord

memallocation

Recommended Posts

Hi!

I have some knowledge in program c and c++.

I have a question about memallocation in Arma2.

If I create a object in Arma2 and I add a eventhandler or I use setVariable on an object and I want to delete that objekt for example with "deleteVehicle", do I need to remove the eventhandler for unblock memory or will that removed by Arma2?

Thx. Pillord

Share this post


Link to post
Share on other sites

My guess is that the engine automatically cleans it up itself, although I don't think there is a way to be sure.

Arma scripting is much higher level than C or C++. My advice don't worry about memory at all with arma scripting unless you have arrays with more than 10,000 elements (which is unusual). Instead worry about performance since a lot of other scripts might be running that needs the time.

Edited by Muzzleflash

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×