Hi,
I've a program with connection to some Mysql server. This program calls a stand alone dll. In the dll again a connection is created to the same Mysql server, and afterwards deleted. The dll gives the correct result.
After return in the calling program, when for the first time there is some call to the server, I get the error "MySQL server has gone away".
What can be at hand? Is the architectur with a dll that connects to the same server not allowed? Has anyone a suggestion what to do?
Regards, Henk
MySQL server gone away after call to dll
Moderators: gto, EgonHugeist, olehs
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
hstijnen,
Hmm that happens if the MySQL connect handle was released. Which means the dll connection disposes the same handle the calling applikation uses too!?
You use two different ZConnection.. What happens if one of them contains TZConnection.LibraryLocation := 'libmysql.dll? Here i force Zeos to clone the PlainDriver, which normaly has no dependencies to the connection handles. Are you sure you really have two ZConnection?
Hmm that happens if the MySQL connect handle was released. Which means the dll connection disposes the same handle the calling applikation uses too!?
You use two different ZConnection.. What happens if one of them contains TZConnection.LibraryLocation := 'libmysql.dll? Here i force Zeos to clone the PlainDriver, which normaly has no dependencies to the connection handles. Are you sure you really have two ZConnection?
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/