Raised This Month: $ Target: $400
 0% 

Registering client on connect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 01-06-2011 , 08:39   Registering client on connect
Reply With Quote #1

Hey, is it important to free handle in else statement for this:

PHP Code:
if(SQL_NumResults(Query) > 1)
    {
        
iBla[id]    = SQL_ReadResult(Query0);
        
iBlaBla[id]    = SQL_ReadResult(Query2);
        
iBlaBlaBla[id]    = SQL_ReadResult(Query3);
        
iBlaBlaBlaBla[id]    = SQL_ReadResult(Query4);
        
iBlaBlaBlaBlaBla[id]     = SQL_ReadResult(Query5);
    }
    else
    {
        new 
szTemp[512];
        
SQL_ThreadQuery(g_SqlTuple,"IgnoreHandle",szTemp);
    } 
Or isn't it a big difference with this:

PHP Code:
if(SQL_NumResults(Query) > 1)
    {
        
iBla[id]    = SQL_ReadResult(Query0);
        
iBlaBla[id]    = SQL_ReadResult(Query2);
        
iBlaBlaBla[id]    = SQL_ReadResult(Query3);
        
iBlaBlaBlaBla[id]    = SQL_ReadResult(Query4);
        
iBlaBlaBlaBlaBla[id]     = SQL_ReadResult(Query5);
    } 
reinert is offline
 


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 02:14.


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