• 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.

[Trigger] Nullify Vars in GUI

Status
Not open for further replies.
Level 14
Joined
Nov 20, 2005
Messages
1,156
Not strictly speaking true, actually. Globals do still stop the index from recycling. Normally this isn't an issue, as the variable gets set to something (and thus the reference counter decrements), but if you leave it pointing at the handle... Mainly significant with arrays.

And you can just set it to no unit/whatever, no need for custom scripts.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
What's the chance you will ever get to the maximum with globals (the only big loops I ever saw were in physics and stuff made with Jass)?
Still good to know that for general knowledge (not that I care for a shnitzel about warcraft anymore, but whatever).

Also don't forget to destroy pointing leaks (most common are locations, unit groups, and special effects, of course).
 
Level 20
Joined
Apr 22, 2007
Messages
1,960
Not nullifying globals pretty much means that the index won't be recycled, so if you're using something like DataSystem that relies on free indexes in a handle array (based on the amount of active handles), well you're pretty much fucked. So nullify globals that could take up alot of handle indexes.
 
Status
Not open for further replies.
Top