| 12-06-2008, 07:54 PM | #1 |
Im havig a slight problem. I have imported a few of Pyrogasms spells- Fireball and Blizzard, and its giving me these irritating messages when I cast the ability. These show up multiple times when casting. The text is -Warning: GetAttachedGroup function Is In Use (Debug Mode) -Warning: GetArrayUnit function is in use (Debug mode) -Warning:SetArrayObject function is in use Now if this is a leak what should I be looking for? I have imported these abilities after I imported Vexorians caster system if that helps, and thats when I got the errors. If its not a leak, then how do I remove this infernal text? |
| 12-06-2008, 10:20 PM | #2 |
Hmmm... I honestly don't know what those errors mean because I've never tested those spells with debug mode on. It could be that you're using a newer castersystem which has essentially deprecated using I2H, and it's just warning you that something is calling the functions. To remove the text, simply turn Debug mode off. If you'd like, I can re-write the spells to use vJASS now. |
| 12-06-2008, 11:05 PM | #3 |
Ah, so the debug mode thing was the problem. I thought it was for non battle.net stuff only, lol. Yes, I am using the latest caster system. As for the Vjass, Would it be more efficient? Those are the errors I caught, so it might be leaking with the new caster system, I dont know. Rewrite them if you want. I dont know If I will be able to give you rep, as the last time I tried it said I needed to spread it around. |
| 12-06-2008, 11:26 PM | #4 |
It's not leaking, it's just that it uses I2H(), which should pretty much be avoided whenever possible. |
| 12-06-2008, 11:46 PM | #5 |
Ah. Why should It be avoided anyways? And if it should be avoided, I think that you should rewrite them then, lol. Im also thinking of using Multishot. |
| 12-07-2008, 05:05 AM | #6 |
Because, while H2I is safe, sometimes the handle stack goes wonky and using I2H to convert an integer back into a handle can be buggy. It's not something that is extremely common, though, and using I2H was standard practice from when KaTTaNa released his Local Handle Variables until the advent of vJASS and the popularization of structs. So basically, it's not horrible but if you can avoid it then do so. In my case when I wrote those spells, I was not able to compile vJASS code, so I had to stick to H2I and I2H attaching. I'll rewrite them if it really matters to you or you have some issues with them, but unless that's the case I'd like to not have to. |
| 12-07-2008, 08:54 AM | #7 |
turn debug mode off |
