Server Crash
#5

Quote:
Originally Posted by AndreT
Посмотреть сообщение
You could check when exactly the issue starts - is the loop even reached, what does the call to mysql_num_rows give... if the script goes that far. In general, add some more debugging. See if your MySQL plugin creates its own logs, try to find something useful from that.

A common pitfall for memory leaks is something like:
pawn Код:
mysql_query(...);
mysql_store_result();
if(mysql_num_rows() == 0)
{
    printf("No rows, cmon...");
    return true;
}
mysql_free_result();
In some cases, memory is left unfreed there and that will cause you trouble.
I have found few of them memory leaks in the gamemode, they have been fixed, hopefully they were the issue. I will let you know in case it's fixed or not, thank you for your help, appreciated.
Reply


Messages In This Thread
Server Crash - by GiamPy. - 22.11.2012, 22:25
Re: Server Crash - by AndreT - 22.11.2012, 22:42
Re: Server Crash - by GiamPy. - 22.11.2012, 22:54
Re: Server Crash - by AndreT - 22.11.2012, 23:03
Re: Server Crash - by GiamPy. - 22.11.2012, 23:12

Forum Jump:


Users browsing this thread: 1 Guest(s)