
08-22-2014, 04:56 PM
|
|
NaS
|
Join Date: Jan 2014
Posts: 21
|
|
|
It isn't an issue of not using onInitialized. I am talking about TStaticVars going AWOL hours after their creation without an NPC server shutdown or downtime in between.
In addition, yes, both of the DB NPCs I ran this in had onCreated() called in their onInitialized().
Like I said, I'm not doubting you that you've had success with TStaticVars not poofing. However, I've got several years of experience and troubleshooting this exact situation that say otherwise.
@Scriptless: Garbage collecting is a term used to mean that no-longer-references objects/variables are simply deleted after their references are gone.
The most common example of garbage collection is when a function terminates, its temp.variables are garbage collected unless stored elsewhere. That's what makes 'em temp. |
|
|
|