19.09.2010, 14:40
I'm having a problem with gmx, with a fresh gamemode I'm working on.
I'm just connecting to the database on gamemodeinit and closing it on gamemodeexit. No querys executed at all.
And when I gmx, sometimes the server closes and sometimes it doesn't.
Here's the mysql_log:
- CRASH
I changed today to version R5. Didn't experience any problems with the earlier versions.
I'm just connecting to the database on gamemodeinit and closing it on gamemodeexit. No querys executed at all.
And when I gmx, sometimes the server closes and sometimes it doesn't.
Here's the mysql_log:
Код:
[14:53:04] --------------------------- [14:53:04] MySQL Debugging activated (09/19/10) [14:53:04] --------------------------- [14:53:04] [14:53:04] >> mysql_connect( ) [14:53:04] CMySQLHandler::CMySQLHandler() - constructor called. [14:53:04] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "x" | Username: "root" ... [14:53:04] CMySQLHandler::Connect() - Connection was successful. [14:53:04] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [14:54:47] >> mysql_ping( Connection handle: 1 ) [14:54:47] CMySQLHandler::Ping() - Connection is still alive. [15:19:30] >> mysql_ping( Connection handle: 1 ) [15:19:30] CMySQLHandler::Ping() - Connection is still alive. [15:19:30] >> mysql_close( Connection handle: 1 ) [15:19:30] CMySQLHandler::~CMySQLHandler() - deconstructor called. - CRASH [15:21:43] [15:21:43] --------------------------- [15:21:43] MySQL Debugging activated (09/19/10) 15:21:43] --------------------------- [15:21:43] [15:21:43] >> mysql_connect( ) [15:21:43] CMySQLHandler::CMySQLHandler() - constructor called. [15:21:43] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "x" | Username: "root" ... [15:21:43] CMySQLHandler::Connect() - Connection was successful. [15:21:43] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [15:23:41] >> mysql_ping( Connection handle: 1 ) [15:23:41] CMySQLHandler::Ping() - Connection is still alive. [15:27:56] >> mysql_ping( Connection handle: 1 ) [15:27:56] CMySQLHandler::Ping() - Connection is still alive. [15:27:56] >> mysql_close( Connection handle: 1 ) [15:27:56] CMySQLHandler::~CMySQLHandler() - deconstructor called. [15:27:56] CMySQLHandler::FreeResult() - The result is already empty. [15:27:56] CMySQLHandler::Disconnect() - Connection was closed. - DIDN'T CRASH [15:28:08] [15:28:08] --------------------------- [15:28:08] MySQL Debugging activated (09/19/10) [15:28:08] --------------------------- [15:28:08] [15:28:08] >> mysql_connect( ) [15:28:08] CMySQLHandler::CMySQLHandler() - constructor called. [15:28:08] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "x" | Username: "root" ... 15:28:08] CMySQLHandler::Connect() - Connection was successful. [15:28:08] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [15:29:53] >> mysql_ping( Connection handle: 1 ) [15:29:53] CMySQLHandler::Ping() - Connection is still alive. [15:29:53] >> mysql_close( Connection handle: 1 ) [15:29:53] CMySQLHandler::~CMySQLHandler() - deconstructor called.
pawn Код:
public OnGameModeExit()
{
print("* Exiting gamemode...");
if(mysql_ping())
mysql_close();
return 1;
}