logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Hashset

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
Athanor Salamander



Joined: 15 May 2005
Posts: 6

PostPosted: Fri Jul 15, 2005 1:49    Post subject: Hashset Reply with quote

Hi All Smile
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
View user's profile Send private message
Athanor Salamander



Joined: 15 May 2005
Posts: 6

PostPosted: Fri Jul 15, 2005 18:58    Post subject: Reply with quote

Mmmmh forget it Crying or Very sad
I'm 'till too weak to play in master's court Crying or Very sad Crying or Very sad
_________________
"The Wolf, the Ram, the Hart"
Humanity is a Weakness Science.

Atha, Script Artist
Back to top
View user's profile Send private message
Blacksting



Joined: 03 Jan 2005
Posts: 107

PostPosted: Sun Jul 17, 2005 2:24    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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