| 11-08-2008, 09:52 PM | #1 |
It seems i have some leaks still in my map and i dont know where so what is the best program or webpage where i can paste code into to check it over currently? There was a webpage i use to use to paste code into but i lost the address and it wasn't all that accurate. I figure there must be something really good out there by now. |
| 11-08-2008, 10:00 PM | #2 |
Your eyes. It's pretty much impossible to make a good leak checker. Just throw in some debug messages, and watch out for unexplained handle count increases etc. Also, make sure you know about the various more obscure leaks (triggeractions, groups, etc). |
| 11-08-2008, 10:26 PM | #3 |
I'm using this Guide to go through manually, but i'd a computer to check over each trigger too in case if my eyes miss over stuff. I destroy pretty much everything I can. my maps usually quite solid but I sometimes overlook something when there is a lot of code to get straight |
| 11-08-2008, 10:29 PM | #4 |
Basically what PurplePoot said, it's a matter of accumulating knowledge on the subject so that each time you write a script you have a good idea of what handles/operations you will be using, what handle nulling is necessary, and make sure you destroy or recycle all of the handles you use. |
| 11-09-2008, 09:57 AM | #5 |
the tip of wat leak is: everything (part of text/word or watever in GUI) tat gives u an image of an object or subject leaks... or potentially will do. example: (Ability being cast) equal something... Im not sure if (Ability being cast) leaks, but when i keep track of all these things and set them to null, it never leaks. |
| 11-09-2008, 02:12 PM | #6 |
Ability being cast or GetSpellAbilityId() returns an integer that doesn't leak. It's good to be careful though. |
| 11-09-2008, 02:17 PM | #7 |
Every function that returns handle - leak. Some function that returns handle - autoclean. Strings always leak and cannot be cleaned. |
