AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   Solved [Answered]Would this make everyone's weapon quality Valve? (https://forums.alliedmods.net/showthread.php?t=232453)

friagram 01-02-2014 02:08

Re: [Answered]Would this make everyone's weapon quality Valve?
 
Because leaking thousands of handles until said plugin unloads itself is good?

WildCard65 01-02-2014 07:08

Re: [Answered]Would this make everyone's weapon quality Valve?
 
Quote:

Originally Posted by friagram (Post 2079796)
Because leaking thousands of handles until said plugin unloads itself is good?

well I get errors in console sometimes about invalid handle.

asherkin 01-02-2014 07:28

[Answered]Would this make everyone's weapon quality Valve?
 
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.

WildCard65 01-02-2014 08:14

Re: [Answered]Would this make everyone's weapon quality Valve?
 
Quote:

Originally Posted by asherkin (Post 2079887)
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.

friagram 01-08-2014 15:46

Re: [Answered]Would this make everyone's weapon quality Valve?
 
Reloading a plugin to free handles is not a good solution

WildCard65 01-09-2014 11:45

Re: [Answered]Would this make everyone's weapon quality Valve?
 
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.


All times are GMT -4. The time now is 21:29.

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