• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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"?
 
Level 8
Joined
Aug 4, 2008
Messages
279
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.
Top