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

Solved [Answered]Would this make everyone's weapon quality Valve?


Post New Thread Reply   
 
Thread Tools Display Modes
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-02-2014 , 02:08   Re: [Answered]Would this make everyone's weapon quality Valve?
Reply With Quote #11

Because leaking thousands of handles until said plugin unloads itself is good?
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-02-2014 , 07:08   Re: [Answered]Would this make everyone's weapon quality Valve?
Reply With Quote #12

Quote:
Originally Posted by friagram View Post
Because leaking thousands of handles until said plugin unloads itself is good?
well I get errors in console sometimes about invalid handle.
WildCard65 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-02-2014 , 07:28   [Answered]Would this make everyone's weapon quality Valve?
Reply With Quote #13

Sorry, yeah, you need to set previousItem to INVALID_HANDLE after the call to CloseHandle - I moved some logic around and forgot to change that.
__________________
asherkin is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-02-2014 , 08:14   Re: [Answered]Would this make everyone's weapon quality Valve?
Reply With Quote #14

Quote:
Originally Posted by asherkin View Post
Sorry, yeah, you need to set previousItem to INVALID_HANDLE after the call to CloseHandle - I moved some logic around and forgot to change that.
k, also when I posted that I removed the closeHandle, I later re-added it because I thought it would fix a crash that is happening when either mvm difficulty is changed, plugin is reload and players rejoin, map change and a player joins and picks a class.
WildCard65 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-08-2014 , 15:46   Re: [Answered]Would this make everyone's weapon quality Valve?
Reply With Quote #15

Reloading a plugin to free handles is not a good solution
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-09-2014 , 11:45   Re: [Answered]Would this make everyone's weapon quality Valve?
Reply With Quote #16

Kind of figured it out but asherkin was helpful in telling me why using closehandles sometimes caused errors with the plugin and how to fix.
WildCard65 is offline
Reply



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:06.


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