Raised This Month: $32 Target: $400
 8% 

Closehandle error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 07-31-2015 , 11:18   Closehandle error
Reply With Quote #1

Code:
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{
................ 
               else if ( !(buttons & IN_ATTACK))
                {
                    SetEntPropFloat( client, Prop_Data, "m_flLaggedMovementValue", ZM_SPEED[ PlayerZmClass[client] ] / 250.0 );


                    if(Smoker_StopBackFlood[client] == true)
                    {
                        //CPrintToChat(client, "Data reset");
                        ResetPack(Smoukerdata[client]);
                        new target = ReadPackCell(Smoukerdata[client]);
                        Smoker_StopBack[target] = false;
                        if (IsValidAlive(target)) {
                            SetEntPropFloat( target, Prop_Data, "m_flLaggedMovementValue", 1.0 );
                        }
                        Smoker_StopBackFlood[client] = false;
                    }

                    if (SmokerTimer[client] != INVALID_HANDLE)
                    {
                        >> ERROR >> CloseHandle( SmokerTimer[client] );
                        SmokerTimer[client] = INVALID_HANDLE;
                    }

                    if (Smoukerdata[client] != INVALID_HANDLE)
                    {
                        Smoukerdata[client] = INVALID_HANDLE;
                        //CloseHandle( Smoukerdata[client] );
                    }
                    
                }
            }
        }
................ 
}
Code:
L 07/31/2015 - 18:18:06: [SM] Native "CloseHandle" reported: Handle 335a0192 is invalid (error 3)
L 07/31/2015 - 18:18:06: [SM] Displaying call stack trace for plugin "gunxpmod.smx":
L 07/31/2015 - 18:18:06: [SM]   [0]  Line 1992, C:\Users\Lukas\Desktop\csgo\Sourcemod 1.7.3 - Zombie Swarm\gunxpmod.sp::OnPlayerRunCmd()
L 07/31/2015 - 18:18:06: [SM] Native "CloseHandle" reported: Handle 335a0192 is invalid (error 3)
L 07/31/2015 - 18:18:06: [SM] Displaying call stack trace for plugin "gunxpmod.smx":
L 07/31/2015 - 18:18:06: [SM]   [0]  Line 1992, C:\Users\Lukas\Desktop\csgo\Sourcemod 1.7.3 - Zombie Swarm\gunxpmod.sp::OnPlayerRunCmd()
L 07/31/2015 - 18:18:06: [SM] Native "CloseHandle" reported: Handle 335a0192 is invalid (error 3)
L 07/31/2015 - 18:18:06: [SM] Displaying call stack trace for plugin "gunxpmod.smx":
iGANGNAM is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-31-2015 , 13:52   Re: Closehandle error
Reply With Quote #2

Are there any other ways these Timer handle may be being closed with the timer variable not being cleared?

Note: This includes map end for timers with the TIMER_FLAG_NO_MAPCHANGE flag and timers that return Plugin_Handled/Plugin_Stop for timers with the TIMER_REPEAT flag.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
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 15:54.


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