- Joined
- Sep 8, 2004
- Messages
- 633
Hello fellow mappers, again it has been quite a while since i last posted, yet again i'm in need of assistance.
Recently, someone reminded me of memory leaks in warcraft 3 maps, so i hauled all of my triggers (474) through a leak checker, it came to light that i have over 1000 memory leaks in my map. It concerns the following types;
- Unit group leak, when a trigger picks every unit in (units xxxxxx), the group remains after the trigger is done, it is not removed by default.
- Position leak, when something is pointed to the center of a location, the point "center of location" remains as a point, it is also not removed.
These leaks are a result of faulty code, since i used only GUI triggering, i didn't think i could make leaking code, but it seemed that blizzard didn't do this part well either, resulting in me finding out that i've got over 1k leaks in my map which will take weeks to fix.
Now, to the point; Is there a way of fixing the leaks without having to go over every damn trigger myself? Is there some kind of tool or plugin (For WE) that can help me? I'd hate to do that much of repetetative work. (Some of my triggers contain over 100 leaks!) Please help.
- Angelusz
Recently, someone reminded me of memory leaks in warcraft 3 maps, so i hauled all of my triggers (474) through a leak checker, it came to light that i have over 1000 memory leaks in my map. It concerns the following types;
- Unit group leak, when a trigger picks every unit in (units xxxxxx), the group remains after the trigger is done, it is not removed by default.
- Position leak, when something is pointed to the center of a location, the point "center of location" remains as a point, it is also not removed.
These leaks are a result of faulty code, since i used only GUI triggering, i didn't think i could make leaking code, but it seemed that blizzard didn't do this part well either, resulting in me finding out that i've got over 1k leaks in my map which will take weeks to fix.
Now, to the point; Is there a way of fixing the leaks without having to go over every damn trigger myself? Is there some kind of tool or plugin (For WE) that can help me? I'd hate to do that much of repetetative work. (Some of my triggers contain over 100 leaks!) Please help.
- Angelusz