HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

When to use a triggersleepaction

03-24-2007, 07:02 AM#1
The_AwaKening
What's the general rule on how much code to run before using a triggerlseepaction and how long. Just .01 ?

I have some code that is crashing periodically and I wonder if it has something to do with this.
03-24-2007, 07:15 AM#2
Ammorth
Dr. Ammorth recommends Jass New Gen Pack. It has debugging that can pin-point crashes and the like to functions and calls within a function. Check it out.
03-24-2007, 07:26 AM#3
blu_da_noob
You can use ExecuteFunc or trigger actions to run stuff in new threads to prevent thread crashes (and yes, Grimoire is indeed most useful for picking up such problems).
03-24-2007, 07:34 AM#4
The_AwaKening
Ya, I figured out the triggerexecute workaround, but I was just curious on how to know when you have too much. I will get grimoire, but just for my info ya know.
03-24-2007, 12:34 PM#5
blu_da_noob
http://www.wc3jass.com/viewtopic.php...5351389d8cfd45
03-24-2007, 01:24 PM#6
The)TideHunter(
Just don't sleep in new threads.
Functions that usually create threads are one that have a code parameter, like ForGroup, ForForce, TimeStart etc.
03-24-2007, 01:41 PM#7
blu_da_noob
Don't sleep in ForGroup, ForForce or timer callback functions. It crashes the thread. In ExecuteFunc/TriggerExec/TriggerEval they are safe.