D
dArKzEr0
Guest
What type of information leaks? I'm under the impression that only handles leak (integers, reals, and booleans do not). So if I have:
Set casterUnit = (Casting unit)
Set casterPoint = (Position of casterUnit)
Set casterOwner = (Owner of casterUnit)
Set casterRange = 600.00
Set targetGroup = (Units within casterRange of casterPoint matching (((Picked unit) belongs to an enemy of casterOwner) Equal to True))
How do you effectively eliminate leaks?
set udg_casterUnit = null
call RemoveLocation( udg_casterPoint ) //does this also set the variable null or does the variable leak? What exactly happens when you remove the location? basically, do i need to use "set udg_casterPoint = null", and if not, why not? Alternatively, if I do use "set = null" do I still need to destroy the location?
set udg_casterOwner = null
//casterRange does not need to be nullified because reals do not leak
call DestroyGroup( udg_targetGroup ) // same question as RemoveLocation(); does the variable leak and do you need to "set udg_targetGroup = null" - why not?
Not sure if I made sense. I'll try to clarify if I didn't.
-darkz
Set casterUnit = (Casting unit)
Set casterPoint = (Position of casterUnit)
Set casterOwner = (Owner of casterUnit)
Set casterRange = 600.00
Set targetGroup = (Units within casterRange of casterPoint matching (((Picked unit) belongs to an enemy of casterOwner) Equal to True))
How do you effectively eliminate leaks?
set udg_casterUnit = null
call RemoveLocation( udg_casterPoint ) //does this also set the variable null or does the variable leak? What exactly happens when you remove the location? basically, do i need to use "set udg_casterPoint = null", and if not, why not? Alternatively, if I do use "set = null" do I still need to destroy the location?
set udg_casterOwner = null
//casterRange does not need to be nullified because reals do not leak
call DestroyGroup( udg_targetGroup ) // same question as RemoveLocation(); does the variable leak and do you need to "set udg_targetGroup = null" - why not?
Not sure if I made sense. I'll try to clarify if I didn't.
-darkz