• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Crash] Unexpected stop... Crashes of for loop

Status
Not open for further replies.
Level 1
Joined
Apr 14, 2012
Messages
2
when i creating the map, i used a double-for-loop, the pseudo code is like below
for (each integer A) from 1 to 10
for (each Integer B) from 1 to 357
assigning array[integer B] some value
save the value of array[integer B] to a hashtable as integer B of Integer A
end for-loop
end for-loop

this runs all the time, however, it get stucked in the half-way. It only completed until integer A = 7 and integer B = 138, and it get stucked at there.

since all the previous data of A < 7 is correct, this means the flow of this double-for loop is ok... but i dunno whats wrong to it.. I have no idea at all. Is it out of memory? or what? can any1 help me?
 
Level 26
Joined
Aug 18, 2009
Messages
4,099
The loop is repeated until any of its exitwhen lines is hit and evaluated as true, in your case until integer A is greater than 10 for example. The actions below the loop are executed after the loop has finished, yes. But if it crashes within the loop, of course it will terminate the whole trigger.

native TriggerSleepAction takes real timeout returns nothing

is a wait or in GUI the fourth action from top in the all actions list named "Wait".
 
Status
Not open for further replies.
Top