MySQL 5

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

MySQL 5

Post by killerjohn »

Hi!

I'm using Delphi 7 and MySQL 5.0.15, and Zeos supports only MySQL version 4.1, but works fine with 5.0.

I'm in the beginning of a new, large project, and I think optimization is a good thing,

so my question: which version shall support MySQL 5.0 ?

(sorry for my baaaad English :roll: )
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

Post by killerjohn »

another problem:

after opening and and closing a database connection to mysql, my application can't exit. Appliaction.Terminate didn't work - my app remains in memory. And I've this problem only with my computer at home. :(

somebody know what is this ?
User avatar
fduenas
Zeos Dev Team
Zeos Dev Team
Posts: 132
Joined: 26.08.2005, 08:12
Location: Cancún

Post by fduenas »

Yes it seems strange, i have noted this yesterday with mysql 4.1.
ihave noted this, it seems so strange.

I have traced the execution an it freezes when zeos call the Windows's FreeLibrary API call, it seems windows freezes the thread there.

I will do more tests to see how to solve this problem because this is new.
What version of Mysql, and windows version (including service packs) do you have?
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

Post by killerjohn »

Windows XP Professional SP2+all updates
MySQL 5.0.15 (mysqld-nt-max)

it's really strange, because this is a new problem, and only with my home computer :(
matf

Post by matf »

Is there a solution for this Problem ?
I have the same Problem and it almost makes me crazy...
jrmarino
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 04.01.2006, 22:37

Post by jrmarino »

I solved this problem, but I had to build my own mysql 5.0 driver, and in doing so, ended up building a whole new wrapper.

http://seegernet.koolhost.de/zeosforum/ ... .php?t=397

Regardless of what is said above, mysql 4.0, 4.1, and 5.0 all need separate DLL's. The DLL's provided with zeos are old. The 4.1 driver is cobbled together, but works well enough for zeos.

I would say for the time being: Don't rely on the 4.1 driver to work mysql 5.0. If it does, it's more or less a happy accident. At least use the mysql 5.0 library dll, that will probably fix the freezing problem, and may be a good enough long term solution for you.
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

Post by killerjohn »

Yesterday I reinstalled my Windows XP, Delphi 2006, everything, but I've the same problem again.... :( :( :(
vanquish
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 06.07.2006, 09:39

Post by vanquish »

Hi.
killerjohn wrote:after opening and and closing a database connection to mysql, my application can't exit. Appliaction.Terminate didn't work - my app remains in memory. And I've this problem only with my computer at home.
I notice this problem after installing a new version of ZoneAlarm.
Uninstalling ZoneAlarm solve the problem.

In ZPlainLoader.pas, I comment in TZNativeLibraryLoader.FreeNativeLibrary

Code: Select all

procedure TZNativeLibraryLoader.FreeNativeLibrary;
begin
//  if (Handle <> 0) and Loaded then   ***ZONEALARM***
//    FreeLibrary(Handle);             ***ZONEALARM***
  Handle := 0;
  Loaded := False;
end;
It's not clean, but it's solve my problem with mySQL 4.1 and ZoneAlarm.

Greatings
Gabriel
Post Reply