Main
06-21-2012, 10:44 PM
Is there any guideline on what causes memory leak or even increase in memory usage?
I am working on a project atm, and it doesn't have SPS,Bitmap,DTM,OBDTM..etc and I'd just like to make sure my script wont build up excess ram usage.
For example, does local var gets cleared when not using the function?
Does two different local var has same name some how share their memory address? (I think its unlikely).
If a array/tpa only has 10 slots used, would initially:
SetLength( ATPA, 99);
or
SetLength( ATPA, 10);
takes up different ram?
Any help or info about ways to reduce memory usage would be greatly appreciated, by myself and many others who want to write a efficient script :)
I am working on a project atm, and it doesn't have SPS,Bitmap,DTM,OBDTM..etc and I'd just like to make sure my script wont build up excess ram usage.
For example, does local var gets cleared when not using the function?
Does two different local var has same name some how share their memory address? (I think its unlikely).
If a array/tpa only has 10 slots used, would initially:
SetLength( ATPA, 99);
or
SetLength( ATPA, 10);
takes up different ram?
Any help or info about ways to reduce memory usage would be greatly appreciated, by myself and many others who want to write a efficient script :)