Noob questions

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Do I have to flush and destroy that timer manualy (or other possible struct variables) or s.destroy() clears whole struct and all it's variabes?
You are doing unrecommended thing, use TimerUtils instead.
NewTimer() -> Get a new timer
ReleaseTimer(timer) -> Call this when you are finished with the timer.
SetTimerData(timer,integer) -> Attach data to timer
GetTimerData(timer) -> Return attached data.
 

mapguy

New Member
Reaction score
46
wait wat wait!
IF I start a timer, it ends, I start again, it ends, I start again, it ends, I start again, it ends, I start again, it ends...

does it cause memory leak?
 

BlackRose

Forum User
Reaction score
239
Uhm. If you mean:

[ljass]PauseTimer()[/ljass]
[ljass]TimerStart()[/ljass]

Over and over, how will it cause a leak?
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
I'm pretty sure TimerStart has a boolean that controls whether a timer is periodic or not.
 

Bribe

vJass errors are legion
Reaction score
67
wait wat wait!
IF I start a timer, it ends, I start again, it ends, I start again, it ends, I start again, it ends, I start again, it ends...

does it cause memory leak?

Absolutely not. When you issue a unit a "move" and a "stop" order, does it cause a memory leak? "move" and "stop" is to unit what "TimerStart" and "PauseTimer" are to timer. You aren't allocating objects to do those tasks like the allocation/deallocation found in CreateTimer/DestroyTimer.
 

dracolich

TH.net Regular
Reaction score
15
I also have newbie question:
If I use only one unit group in all triggers, and just clear after use but not destroy, will it leak?
 

Bribe

vJass errors are legion
Reaction score
67
The precedence is messed up, there are no g,x,y definitions, no source function definition, I just gave the elements. Also, I use Zinc; cJass is broke :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top