View Single Post
  #19  
Old 08-22-2014, 04:31 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 360
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
Quote:
Originally Posted by scriptless View Post
Someone explain what you guys mean by garbage collecting? And the initialization making it more reliable? How so?
iirc the onCreated() event is not invoked when the npc-server is started, whereas onInitialized() is

garbage collection runs destroy objects that have no active reference, for example if you do this twice:

this.obj = new tStaticVar();

then the first object you created will no longer have an active reference, as that reference is now being used for the second object
__________________
This signature has been deleted by Darlene159.
Reply With Quote