Raised This Month: $12 Target: $400
 3% 

[question] about close handle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 03-21-2007 , 04:11   [question] about close handle
Reply With Quote #1

When should we use CloseHandle()?
or what type of handle should we close by self?

Does all handles are automatic closed when plugin unloaded or reloaded?

thanks.
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
faluco
Developer
Join Date: Mar 2005
Location: Valencia, Spain
Old 03-21-2007 , 07:30   Re: [question] about close handle
Reply With Quote #2

you should close all handles by default unless specified in the native description.
For example timer handles are auto closed when the timer ends.
Yes, handles are auto closed on plugin unload.
__________________
:F
faluco is offline
BAILOPAN
Join Date: Jan 2004
Old 03-21-2007 , 11:36   Re: [question] about close handle
Reply With Quote #3

In addition, you may want to read this article, which explains closing in detail:

http://wiki.alliedmods.net/index.php...d_Scripting%29
__________________
egg
BAILOPAN is offline
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 03-22-2007 , 01:36   Re: [question] about close handle
Reply With Quote #4

nice man, thx.
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode