[Help] How to find memory leak?
#3

just 1? 1 might just cause a mysql disconnection, i dont think it would've done all of that.. (BlueG's plugin)

for safer mysql mishaps

try
pawn Код:
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
{
    switch(errorid)
    {
        case CR_COMMAND_OUT_OF_SYNC:
        {
            printf("[Mysql Error] - Commands Out Of Sync For Thread ID: %d",resultid);
        }
        case ER_UNKNOWN_TABLE:
        {
            printf("[Mysql Error] - Unknown table '%s' in %s",error,query);
        }
        case ER_SYNTAX_ERROR:
        {
            printf("[Mysql Error] - Something is wrong in your syntax, query: %s",query);
        }
        case CR_SERVER_GONE_ERROR:
        {
            mysql_reconnect();
        }
        case CR_SERVER_LOST:
        {
            mysql_reconnect();
        }
    }
    return 1;
}
if '[Mysql Error] - Commands Out Of Sync For Thread ID: %d' happens, then the server crashes, then that thread is probably your problem
Reply


Messages In This Thread
[Help] How to find memory leak? - by lolumadd_ - 06.05.2011, 01:41
Re: [Help] How to find memory leak? - by lolumadd_ - 06.05.2011, 01:58
Re: [Help] How to find memory leak? - by Donya - 06.05.2011, 02:18
Re: [Help] How to find memory leak? - by lolumadd_ - 06.05.2011, 02:24
Re: [Help] How to find memory leak? - by Donya - 06.05.2011, 02:43
Re: [Help] How to find memory leak? - by lolumadd_ - 06.05.2011, 15:32
Re: [Help] How to find memory leak? - by lolumadd_ - 06.05.2011, 18:57
Re: [Help] How to find memory leak? - by Donya - 06.05.2011, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)