L
LucidWay
Guest
*I can't count: 3 ?'s*
Ok, so in the tutorial, it said these values cause memory leaks:
Points
Unit Groups
Player Groups
Special Effects
Strings
Regions
Question #1:
No other data types cause leaks? Local integers from functions etc....?
Question #2:
If I have a loop where i redefine a leaking data type, do I only have to remvoe that variable once?
Ex:
Question #3
If I have a global group arrary (Groups leak), and want to use that global group in a trigger. Do I need to make a local group with the specific array group then delete that?
Ex:
Thanks a bundle.
Ok, so in the tutorial, it said these values cause memory leaks:
Points
Unit Groups
Player Groups
Special Effects
Strings
Regions
Question #1:
No other data types cause leaks? Local integers from functions etc....?
Question #2:
If I have a loop where i redefine a leaking data type, do I only have to remvoe that variable once?
Ex:
Code:
local group TempGroup
loop
exitwhen (XXX)
set TempGroup = YYY
endloop
call DestroyGroup(TempGroup)
Question #3
If I have a global group arrary (Groups leak), and want to use that global group in a trigger. Do I need to make a local group with the specific array group then delete that?
Ex:
Code:
set TempGroup = udg_GlobalGroup[X]
set TempUnit = GroupPickRandomUnit(TempGroup)
call DestroyGroup(TempGroup)
Thanks a bundle.