Destroying Every handle

Status
Not open for further replies.
A few weeks ago, I was playing Archer's Legacy and noticed that the
custom font remains in Warcraft's memory even after you quit the game.

So then I googled why it was happening and saw that object handles remain
in your computers memory until you quit Warcraft.

I want to destroy all object handles in my map for a player when he quits (it
may cause a desync, but since the player left, i don't think it's going to be a
problem) or for all players when the game ends, but I'm not exactly sure how
I can do that.

For example, to destroy a unit handle, would removing it from the game be
sufficient?
 
There's no way to get rid of that :P

What I want to do is clear the entire map of units, doodads, regions, rects, integers, reals, cameras, timers, groups, etc...

This way, the memory would be cleared and you wouldn't have to restart warcraft :D
Why the hell would you remove those? o.O
I mean, they're not preserved when you quit the game. It's mostly changed Game Interface that doesn't clear and that can't be changed with triggers.
 
Its because of caching.

To prevent the game reloading data unnescesrcarily, it caches various pieces of data that should not change between game instances. However what happens is that custom map makers decided to alter this "universal" data to better suit their map so it caches from their map those files due to how the import system works. End result is the ability to play other maps with wrong data because it did not reload some data files to suit the other map.
 
Status
Not open for further replies.
Back
Top