View previous topic :: View next topic |
Author |
Message |
Athanor Salamander
Joined: 15 May 2005 Posts: 6
|
Posted: Fri Jul 15, 2005 1:49 Post subject: Hashset |
|
|
Hi All
Question about Hashset :
I would like to know if I declare an Hashset on an object into a function, this same Hashset is destroyed after the function exit, like a classic private function variable, clearly, with sample :
Code: | void DeclareHashSet(object oObject, string sHashset){
HashSetCreate(oObject, sHashset);
}
void main(){
string sSample = "TestHashSet";
DeclareHashSet(OBJECT_SELF, sSample);
int iValid = HashSetValid(oObject, sSample);
} |
Musn't it be TRUE or FALSE about iValid ? _________________ "The Wolf, the Ram, the Hart"
Humanity is a Weakness Science.
Atha, Script Artist |
|
Back to top |
|
|
Athanor Salamander
Joined: 15 May 2005 Posts: 6
|
Posted: Fri Jul 15, 2005 18:58 Post subject: |
|
|
Mmmmh forget it
I'm 'till too weak to play in master's court _________________ "The Wolf, the Ram, the Hart"
Humanity is a Weakness Science.
Atha, Script Artist |
|
Back to top |
|
|
Blacksting
Joined: 03 Jan 2005 Posts: 107
|
Posted: Sun Jul 17, 2005 2:24 Post subject: |
|
|
The answer is no the hashset is not destroyed. The hashset exists in NWNX memory not NWN memory so even, lets say, NWN is completely shut down and NWNX is not the hashset still exists. Deconstruction of NWN functions/scripts will not clean up ANYTHING NWNX does.
Some things to look out for, however. When the hashset dll was first introduced I had problems with it crashing. This was because I was using a PC as the object of record. When a PC ceased to exist (by logging out) NWNX would crash. I never do remember if the same crash occurred if the placeable object holding the hashset was destroyed. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|