Delphi 7 - MemUtils different version of zlib

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
HVA
Posts: 3
Joined: Thu 19 Oct 2006 14:06
Location: Belgium

Delphi 7 - MemUtils different version of zlib

Post by HVA » Thu 19 Oct 2006 14:18

Hello All,

After upgrading to the latest standard version of MyDac 4.40.0.19
I got this error:

Unit MemUtils was compiled with a different version of zlib.zlibAllocMem


Removing all of MyDac and it's traces and reinstalling was of no help.

Is there any solution for this problem ?

Thanks,

Rick

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Re: Delphi 7 - MemUtils different version of zlib

Post by eduardosic » Fri 20 Oct 2006 00:30

HVA wrote:Hello All,

After upgrading to the latest standard version of MyDac 4.40.0.19
I got this error:

Unit MemUtils was compiled with a different version of zlib.zlibAllocMem


Removing all of MyDac and it's traces and reinstalling was of no help.

Is there any solution for this problem ?

Thanks,

Rick
>>Anteus write

Try to perform following steps to solve this problem:
1) Close IDE
2) Uninstall MyDAC
3) Search for MyAccess.*, DBAccess.*, MySQLMonitor.*, mydac*.bpl, dac*.bpl etc files at your HDD and delete them
4) Remove from the project directory all files made by compiler and linker
5) Remove from the registry (HKCU\Software\Borland\Delphi\7.0\Known Packages) all the links to MyDAC packages (mydac*.bpl, dac*.bpl)
6) Run IDE and check that it is started without errors
7) Close IDE
8) Install MyDAC once more

HVA
Posts: 3
Joined: Thu 19 Oct 2006 14:06
Location: Belgium

Post by HVA » Fri 20 Oct 2006 07:01

This is exactly what I have done on the basis of this forums feedback. But I couldn't get round this problem. The only other components I use are the old TurboPower stuff Apro and Ipro.
Many thanks for your feedback.

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

ok..

Post by eduardosic » Fri 20 Oct 2006 11:15

HVA wrote:This is exactly what I have done on the basis of this forums feedback. But I couldn't get round this problem. The only other components I use are the old TurboPower stuff Apro and Ipro.
Many thanks for your feedback.
It looks the other components that use MemUtils and zlib, it removes, it installs mydac, it sees of functions, later installs each component to discover which of them cause the error.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 20 Oct 2006 11:31

As we know TurboPower adds ZLib files that are different from Delphi ones. Try to comment (rename) file zlib.pas from TurboPower installation path and remove all dcu files from "Unit output directory" of your project (see Project Options) and run the project.

HVA
Posts: 3
Joined: Thu 19 Oct 2006 14:06
Location: Belgium

Post by HVA » Mon 23 Oct 2006 09:35

I simply disabled (renamed) the zlib source in Turbopower IPRO source directory and recompiled the project: Problem solved !
Many thanks to Antaeus and eduardosic,

Rick

Post Reply