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

Spell leaks?

Status
Not open for further replies.
Level 6
Joined
Jun 23, 2005
Messages
195
I was wondering what things cause leaks in spells. I know some variables do atleast, it would be nice for someone to explain most common things that cause leaks and how to fix them. I know daelin has made tutorial for leaks but they are so freaking long that I dont want to spend a year reading it....
 
Level 14
Joined
Jan 15, 2007
Messages
349
Well you should read the tutorial from Dealin or other guys for example from wc3campaigns. But whatever I give you a short introduction about how to remove leaks. All stuff you create ,which are handles, you should remove if you dont need it. Mostly you use in spells handles like "location" or "group". To remove/destroy those handles you must just enter the right function. For example when you want to remove a location enter: "call RemoveLocation(<location>)". JassCraft will help you alot when you dont know those function names. Because there you can enter a search word like destroy or remove and then you must just look where is the right function which you need to remove or to destroy a handle like a location or a group!

Link to JassCraft!

I hope I helped you!
 
Level 6
Joined
Jun 23, 2005
Messages
195
Well you should read the tutorial from Dealin or other guys for example from wc3campaigns. But whatever I give you a short introduction about how to remove leaks. All stuff you create ,which are handles, you should remove if you dont need it. Mostly you use in spells handles like "location" or "group". To remove/destroy those handles you must just enter the right function. For example when you want to remove a location enter: "call RemoveLocation(<location>)". JassCraft will help you alot when you dont know those function names. Because there you can enter a search word like destroy or remove and then you must just look where is the right function which you need to remove or to destroy a handle like a location or a group!

Link to JassCraft!

I hope I helped you!

So if i add units to unit group i should write something in the end of the trigger to prevent leaks?
 
Status
Not open for further replies.
Top