Hello, sorry if my english is bad
I put this code to my map:
It just creates 1 footman, and orders him to STOP many times per second, there is also a trigger with unit order event and no condition and actions
After I activate it ( call start() ) , my computer memory begins to go up pretty quickly, end eventually game crashes. There is nothing else on the map, no triggers, no code, no units, nothing
Can anyone explain please ?
EDIT:
My point is, this simple trigger:
apparently leaks, if I order my units to stop alot. (( If I dont create this empty trigger, leak doesnt happen.
That jass script in my 1st post was to quickly test this.
Can anyone please do some tests too ? To confirm / deny.
I put this code to my map:
JASS:
function time takes nothing returns nothing
local integer i = 0
loop
exitwhen i ==100
call IssueImmediateOrderById ( udg_u , 851972 )
set i = i+1
endloop
endfunction
function start takes nothing returns nothing
local trigger t = CreateTrigger()
set udg_u = CreateUnit (Player(0) , 'hfoo' , 0,0, 90 )
call TriggerRegisterUnitEvent (t , udg_u , EVENT_UNIT_ISSUED_ORDER )
call TimerStart ( CreateTimer(), 0.03, true , function time )
endfunction
It just creates 1 footman, and orders him to STOP many times per second, there is also a trigger with unit order event and no condition and actions
After I activate it ( call start() ) , my computer memory begins to go up pretty quickly, end eventually game crashes. There is nothing else on the map, no triggers, no code, no units, nothing
Can anyone explain please ?
EDIT:
My point is, this simple trigger:
-
order
-
Events
-
Unit - A unit Is issued an order with no target
-
-
Conditions
-
Actions
-
apparently leaks, if I order my units to stop alot. (( If I dont create this empty trigger, leak doesnt happen.
That jass script in my 1st post was to quickly test this.
Can anyone please do some tests too ? To confirm / deny.
Last edited: