Pillord 10 Posted September 14, 2011 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
Muzzleflash 111 Posted September 14, 2011 (edited) 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 September 14, 2011 by Muzzleflash Share this post Link to post Share on other sites