new connection per thread
Posted by:
as
Date: June 24, 2005 02:14PM
hi
i have a mysql client which creates a new connection to DB in a seperate thread, but as soon as more than one thread tries to connect at the same time, the client program crashes.
code in the thread looks like:
_ptrMysqlHandle = mysql_init (0);
if (_ptrMysqlHandle && mysql_real_connect (.....))
{
....
}
select calls ...
mysql_close (_ptrMysqlHandle);
maybe mysql_init () sets some global variables each time, which are getting modified by threads.
pls. help
thanks in advance
as
Subject
Views
Written By
Posted
new connection per thread
803
June 24, 2005 02:14PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.