Automatic Memory Leak Destroyer by MapperMalte
Type: System
Category: vJASS
Quote: this system is too cool to be real!!
Quote: Wow, this is probably the greatest thing to happen for GUI users in the history of WC3 modding. My hat is off to you
Quote: You shall soon become a god amongst GUI users
Quote: Too bad it didn't come out years ago.
This is an Automatic memory Leak Destroyer!
It catches all the memory leaks you cause by using locations/groups or effects in GUI and destroys them automatically.
There is just one thing you have to care about when using this:
Each variable that you use, filled with a group, a location or an effect, that has
to be filled for more than CLEAN_UP_INTERVAL seconds, has to be protected with
a simple function:
call ProtectHandle(udg_###)
where ### stands for the variable name.
Note: This gives DoNothing a sense.
When you call DoNothing, the destroy thread is started and the caught data are destroyed after CLEAN_UP_INTERVAL seconds, ignoring if the number of caught handles is bigger than MIN_LEAK_NUMBER.
Normally you never have to use it, but you can do so.
And not only things like this, all leaks.
This can also be used as an addition to your own leak cleaning, if you forgot something.
It wont break, when you destroy your leaks on your own
Automatic Memory Leak Destroyer
- Enalias
- Site Admin
- Posts: 200
- Joined: Sat Sep 15, 2018 1:57 pm
- Reputation: 9
- Location: Florida, U.S.A.
- Website: http://chaosrealm.co/memberlist.php?mod ... rofile&u=2
- Discord: https://discord.gg/BUEZkef
- Twitch: https://www.twitch.tv/enalias
- Contact:
Automatic Memory Leak Destroyer
-
0
- Quote
Post by Enalias » Mon Nov 05, 2018 12:10 pm
You do not have the required permissions to view the files attached to this post.
Have you read the Chaos Realm Rules yet?
Click me!
Show
×
- Important message for guests!
- ↳ Guests:
- Stronghold
- ↳ Official Chaos Realm Discord Group
- ↳ Chaos News
- ↳ Chaos Tavern
- ↳ Chaos Contests
- ↳ Triggering Contests
- ↳ Animation Contests
- ↳ Terrain Art Contests
- ↳ Graphic Contests
- ↳ Other Gaming
- WarCraft III Modding
- ↳ Models & Skins
- ↳ Anime & Cartoon
- ↳ Characters
- ↳ Other
- ↳ Black Rock Shooter
- ↳ Bleach
- ↳ D.Gray-man
- ↳ Date A Live
- ↳ Digimon
- ↳ Dragon Ball Z
- ↳ Fairy Tail
- ↳ Fullmetal Alchemist
- ↳ Gintama
- ↳ Gundam
- ↳ Hitman Reborn
- ↳ Inuyasha
- ↳ JoJo's Bizarre Adventure
- ↳ Mahou Shoujo Lyrical Nanoha
- ↳ Marvel & DC
- ↳ Naruto
- ↳ Negima! Magister Negi Magi
- ↳ One Piece
- ↳ Pokémon
- ↳ Puella Magi Madoka Magica
- ↳ Shakugan no Shana
- ↳ Shingeki no Kyojin
- ↳ Slayers
- ↳ Sword Art Online
- ↳ Toaru Majutsu No Index
- ↳ Tokyo Ghoul
- ↳ Typemoon Fate/Stay Night
- ↳ Yu-Gi-Oh
- ↳ Buildings
- ↳ Doodads
- ↳ Items
- ↳ SFX
- ↳ Tilesets
- ↳ Video Games
- ↳ Characters
- ↳ Other
- ↳ Devil May Cry
- ↳ Dota2
- ↳ Dynasty Warriors & Samurai Warriors
- ↳ Final Fantasy
- ↳ Fire Emblem
- ↳ Heroes of the Storm
- ↳ Hyperdimension Neptunia
- ↳ Kantai Collection
- ↳ King of Fighters
- ↳ Kingdom Hearts
- ↳ League Of Legends
- ↳ Lineage
- ↳ Mega Man
- ↳ Mobile Legends
- ↳ Mortal Kombat
- ↳ Plants vs Zombies
- ↳ Sonic Series
- ↳ Star Wars
- ↳ Super Smash Bros.
- ↳ Touhou Project
- ↳ Vocaloid & MikuMikuDance
- ↳ Warcraft
- ↳ Characters
- ↳ Blood Elves
- ↳ Dwarfs
- ↳ Humanoids
- ↳ Night Elves
- ↳ Orcs
- ↳ Taurens
- ↳ Trolls
- ↳ Undead
- ↳ Other
- ↳ Creatures & Mechanicals
- ↳ Critters
- ↳ Demons
- ↳ Dragon
- ↳ Elementals
- ↳ Mechanicals
- ↳ Buildings
- ↳ Doodads
- ↳ Items
- ↳ Special Effects
- ↳ Tilesets
- ↳ Starcraft
- ↳ Terran
- ↳ Zerg
- ↳ Protoss
- ↳ Other
- ↳ Doodads
- ↳ Custom UI
- ↳ Spells & Triggers
- ↳ Spells
- ↳ No Target
- ↳ Target Unit
- ↳ Target Ground
- ↳ Spell Packs
- ↳ Systems
- ↳ Work In Progress
- ↳ Graphics
- ↳ Icons
- ↳ Music & Sounds
- ↳ Terrain
- Other Game Modding
- ↳ Other game stuff, when it comes along.
- Hosted Projects
- ↳ Battlestadium DON
- ↳ Naruto Shippuuden: Akatsuki War
- ↳ Dragonball Budokai / Toshinden
- ↳ Naruto Ninpou
- ↳ Clash of Anime
- ↳ Holy Grail War
- Partners
- ↳ Warcraft 3 Modding Information Center
- ↳ Dragonball Budokai / Toshinden
- ↳ Battlestadium D.O.N.
- ↳ Naruto Ninpou
- ↳ Warcraft 3 Reddit
- ↳ Naruto Shippuuden: Akatsuki War
- ↳ Hero Wars League
- ↳ Holy Grail War
- ↳ WC3 Anime
- Important message for guests!
- ↳ Guests:
- Stronghold
- ↳ Official Chaos Realm Discord Group
- ↳ Chaos News
- ↳ Chaos Tavern
- ↳ Chaos Contests
- ↳ Triggering Contests
- ↳ Animation Contests
- ↳ Terrain Art Contests
- ↳ Graphic Contests
- ↳ Other Gaming
- WarCraft III Modding
- ↳ Models & Skins
- ↳ Anime & Cartoon
- ↳ Characters
- ↳ Other
- ↳ Black Rock Shooter
- ↳ Bleach
- ↳ D.Gray-man
- ↳ Date A Live
- ↳ Digimon
- ↳ Dragon Ball Z
- ↳ Fairy Tail
- ↳ Fullmetal Alchemist
- ↳ Gintama
- ↳ Gundam
- ↳ Hitman Reborn
- ↳ Inuyasha
- ↳ JoJo's Bizarre Adventure
- ↳ Mahou Shoujo Lyrical Nanoha
- ↳ Marvel & DC
- ↳ Naruto
- ↳ Negima! Magister Negi Magi
- ↳ One Piece
- ↳ Pokémon
- ↳ Puella Magi Madoka Magica
- ↳ Shakugan no Shana
- ↳ Shingeki no Kyojin
- ↳ Slayers
- ↳ Sword Art Online
- ↳ Toaru Majutsu No Index
- ↳ Tokyo Ghoul
- ↳ Typemoon Fate/Stay Night
- ↳ Yu-Gi-Oh
- ↳ Buildings
- ↳ Doodads
- ↳ Items
- ↳ SFX
- ↳ Tilesets
- ↳ Video Games
- ↳ Characters
- ↳ Other
- ↳ Devil May Cry
- ↳ Dota2
- ↳ Dynasty Warriors & Samurai Warriors
- ↳ Final Fantasy
- ↳ Fire Emblem
- ↳ Heroes of the Storm
- ↳ Hyperdimension Neptunia
- ↳ Kantai Collection
- ↳ King of Fighters
- ↳ Kingdom Hearts
- ↳ League Of Legends
- ↳ Lineage
- ↳ Mega Man
- ↳ Mobile Legends
- ↳ Mortal Kombat
- ↳ Plants vs Zombies
- ↳ Sonic Series
- ↳ Star Wars
- ↳ Super Smash Bros.
- ↳ Touhou Project
- ↳ Vocaloid & MikuMikuDance
- ↳ Warcraft
- ↳ Characters
- ↳ Blood Elves
- ↳ Dwarfs
- ↳ Humanoids
- ↳ Night Elves
- ↳ Orcs
- ↳ Taurens
- ↳ Trolls
- ↳ Undead
- ↳ Other
- ↳ Creatures & Mechanicals
- ↳ Critters
- ↳ Demons
- ↳ Dragon
- ↳ Elementals
- ↳ Mechanicals
- ↳ Buildings
- ↳ Doodads
- ↳ Items
- ↳ Special Effects
- ↳ Tilesets
- ↳ Starcraft
- ↳ Terran
- ↳ Zerg
- ↳ Protoss
- ↳ Other
- ↳ Doodads
- ↳ Custom UI
- ↳ Spells & Triggers
- ↳ Spells
- ↳ No Target
- ↳ Target Unit
- ↳ Target Ground
- ↳ Spell Packs
- ↳ Systems
- ↳ Work In Progress
- ↳ Graphics
- ↳ Icons
- ↳ Music & Sounds
- ↳ Terrain
- Other Game Modding
- ↳ Other game stuff, when it comes along.
- Hosted Projects
- ↳ Battlestadium DON
- ↳ Naruto Shippuuden: Akatsuki War
- ↳ Dragonball Budokai / Toshinden
- ↳ Naruto Ninpou
- ↳ Clash of Anime
- ↳ Holy Grail War
- Partners
- ↳ Warcraft 3 Modding Information Center
- ↳ Dragonball Budokai / Toshinden
- ↳ Battlestadium D.O.N.
- ↳ Naruto Ninpou
- ↳ Warcraft 3 Reddit
- ↳ Naruto Shippuuden: Akatsuki War
- ↳ Hero Wars League
- ↳ Holy Grail War
- ↳ WC3 Anime