- Joined
- Nov 29, 2006
- Messages
- 2,482
Folks, it is true that Blizzard finally put up that garbage collection to work well, but for those of you who don't know, certain object types do still need to be destroyed. Why? Well, there are some info about it in the native.galaxy script file:
In conclusion, whatever object type that isn't on that list needs to be removed manually.
You all are probably familiar with it in wc3 though, I just wanted to give you the notice.
~Eccho~
[...]
// -- Complex types and automatic deletion --
//
// Many native types represent "complex" objects (i.e. larger than 4 bytes). The script language
// automatically keeps track of these objects and deletes them from memory when they are no longer
// used (that is, when nothing in the script references them any longer). The types which benefit
// from automatic deletion are:
//
// abilcmd, bank, camerainfo, marker, order, playergroup, point,
// region, soundlink, string, text, timer, transmissionsource, unitfilter, unitgroup, unitref,
// waveinfo, wavetarget
//
// Other object types must be explicitly destroyed with the appropriate native function when you
// are done using them.
[...]
In conclusion, whatever object type that isn't on that list needs to be removed manually.
You all are probably familiar with it in wc3 though, I just wanted to give you the notice.
~Eccho~