Should I CloseHandle(plugin) ???
The below loops through plugins using the plugin iterator.
Code:
public void _Dynamic_HandleUsage() |
Re: Should I CloseHandle(plugin) ???
|
Re: Should I CloseHandle(plugin) ???
I already close the iterator handle.
The question is do i need to close the plugin handles. |
Re: Should I CloseHandle(plugin) ???
You shouldn't need to do this. I think closing that handle may actually cause the plugin to screw up? Imma test it out real fast.
EDIT: Nevermind. Plugin handles are unclosable. https://wiki.alliedmods.net/Handles_...pting)#Plugins |
Re: Should I CloseHandle(plugin) ???
Thats what i thought. Just afk atm so cant test
|
Re: Should I CloseHandle(plugin) ???
You could always check and see if you get an error about not having permissions to close said handles.
I'm guessing you don't need to close them as they're likely owned by Core, same as CVar Handles. |
Re: Should I CloseHandle(plugin) ???
I edited my previous post with my findings, before I saw that people had replied.
Plugin handles are owned by Core, and cannot be closed or cloned. |
Re: Should I CloseHandle(plugin) ???
Sweet. Thanks everyone
|
| All times are GMT -4. The time now is 01:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.