the problem not from the map ?,but from the PC?
Game might continue to perform fine and still have memory leaks. I've never seen that error when it wasn't a memory leak. It's normally a critical error, memory could not be read, when it's not a memory leak. I've raised those errors with like double TriggerRemoveCondition and other fun stuff .
function HandleCount takes nothing returns nothing
local location L = Location(0,0)
call BJDebugMsg(I2S(GetHandleId(L)-0x100000))
call RemoveLocation(L)
set L = null
endfunction
//===========================================================================
function InitTrig_HandleCounter takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterTimerEvent(t,0.09,true)
call TriggerAddAction(t,function HandleCount)
endfunction
wait , i want ask something..
if it increase periodically , so the causes is triggers that has periodic event right ?
if debug message is same for few times , what it means?
if its changing slowly?
after that if it increase 1 digit , it its leaking or not ?
btw i want ask about offset, i make a spell that using offset , hot to remove leak from this trigger
- Bash Explosion
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Bash Explosion
- Actions
- Set TempLoc[4] = ((Position of (Casting unit)) offset by 10.00 towards (Angle from (Position of (Casting unit)) to (Target point of ability being cast)) degrees)
- Unit - Create 1 dummy for Neutral Passive at TempLoc[4] facing (Angle from (Position of (Casting unit)) to (Target point of ability being cast)) degrees
- Set bash = (Last created unit)
- Set TempLoc[3] = (TempLoc[4] offset by 400.00 towards (Angle from (Position of (Casting unit)) to (Target point of ability being cast)) degrees)
- Set Unit_Groups = (Units within 400.00 of TempLoc[3] matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
- Unit - Order bash to Move To TempLoc[3]
- Wait 1.00 seconds
- Custom script: call RemoveLocation(udg_TempLoc[4])
- Custom script: call RemoveLocation(udg_TempLoc[3])
- Custom script: call DestroyGroup(udg_Unit_Groups)
- Custom script: set udg_Unit_Groups = null
- Unit - Remove bash from the game
thanks