• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Noobie help: Leaks

Status
Not open for further replies.
Level 4
Joined
Dec 6, 2008
Messages
84
I can't find any good tutorials on this subject. If I missed one please give me the link.

What exactly is a memory "leak"? How do I check for them/get rid of them?

Any advice? I heard from one person you shouldn't use the "create a unit" function in an event trigger, is that true? My map doesn't lag but it does crash with this message: "The instruction at '##########' referenced memory at '0x00000000'. The memory could not me 'read'. I'm guessing this is due to a "leak"?
 
Hm, to get rid of leaks is simple.
if u have a variable for unit group, point, or player group, u use:
Custom Script : call DestroyForce (udg_[variable name]) - For Player Group -
Custom Script : call DestroyGroup (udg_[variable name]) - For Unit Group -
Custom Script : call RemoveLocation (udg_[variable name]) -For points-
 
Status
Not open for further replies.
Back
Top