Raised This Month: $ Target: $400
 0% 

Solved Should I CloseHandle(plugin) ???


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-24-2016 , 00:39   Should I CloseHandle(plugin) ???
Reply With Quote #1

The below loops through plugins using the plugin iterator.

Code:
public void _Dynamic_HandleUsage()
{
	// Loop plugins
	Handle iterator = GetPluginIterator();
	Handle plugin;
	while (MorePlugins(iterator))
	{
		plugin = ReadPlugin(iterator);
	}
	CloseHandle(iterator);
}
Will this leak as I need to call CloseHandle(plugin); ?
__________________

Last edited by Neuro Toxin; 11-24-2016 at 03:31.
Neuro Toxin is offline
 



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 19:24.


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