Access Violation libpq8x.dll

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

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
User avatar
lucianobarreto
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 25.10.2005, 11:34
Location: Apucarana
Contact:

Access Violation libpq8x.dll

Post by lucianobarreto »

Hi, I have installed the last build of Zeos Lib, upgrading my older version(Alpha Build 02 November 2003). The instalation runs greatly, but when I try to access the protocol Postgresql an error ocurries.
Access Violation "bla bla bla" libpq8x.dll.
I'm using Windows XP SP2, Delphi 7, Postgresql 8.0.2 running on Windows.

I downgrade the Zeos Lib and it runs correctly now...

Please, I would like a solution, bcuz I want use the newest version...

Até mais
Abraços
User avatar
aperger
Expert Boarder
Expert Boarder
Posts: 129
Joined: 24.08.2005, 08:24
Location: Veszprém
Contact:

D7, PostgreSQL 8.0.x

Post by aperger »

Hello,

I have the same error. And I have problems with the BLOB handling. I hope the ZeOSLib TEAM can solve these problems. I am trying to find the bug of BLOB handling on PostgreSQL.... I hope... The part of ZeOS what I use is working without any problem for me.
User avatar
lucianobarreto
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 25.10.2005, 11:34
Location: Apucarana
Contact:

Post by lucianobarreto »

Thanx to reply...

I'll wait for the update or the stable version of this to try again....
While, i go using the older version... :(

Abraços
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

Hi Luciano, hi Atila,

due to a very huge lack of time I can't care about all your issues immediately or give them to the developer who may handle/fix the certain problem. But this i posted to our Postgre-Specialist who made the integration. He mentioned that he compiled the library with BCC5.5 and it would work within his environment. Did someone of you try this library with the 8.1 Version of Postgre (I know, it's still beta)? I personally don't have any Postgre installed to test it, I'm sorry.

Regards.

Michael - more often offline as he wanted to be ... :(
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
User avatar
aperger
Expert Boarder
Expert Boarder
Posts: 129
Joined: 24.08.2005, 08:24
Location: Veszprém
Contact:

Post by aperger »

Hi,

I try to copy libpq81.dll from one of the ZeOS Zip from SF.Net and I will remane it to libpq8x.dll and I will make test and post it here for you.

Attila
User avatar
lucianobarreto
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 25.10.2005, 11:34
Location: Apucarana
Contact:

Post by lucianobarreto »

Thanx to yours replies!
I'll stay waiting....

Abraços
User avatar
aperger
Expert Boarder
Expert Boarder
Posts: 129
Joined: 24.08.2005, 08:24
Location: Veszprém
Contact:

Post by aperger »

Hi All,

I made a test again with latest ZeOS zip package (2005/10/13), D7/D2005 Prof Win32. I got the same error with the original libpq8x.dll, but if I use libpq.dll from PostgreSQL 8.0.0 (ApacheTriad), the error does not appeare. But something is not correct. If I restart the program the image is wrong, according to my previous note:
http://seegernet.koolhost.de/zeosforum/viewtopic.php?t=149


Unfortunatelly I can not find libpq81.dll on the NET, it was available in one of the earlier CVS.


Attila
cnliou
Zeos Dev Team
Zeos Dev Team
Posts: 31
Joined: 11.11.2005, 12:18

Post by cnliou »

This is one issue I don't know why it does not work with your applications. It works flawlessly with my BCB 6 application.

I built libpq8x.dll from PostgreSql source using BCC 5.5. You should be able to build it by following these steps:

- Download and install BCC5.5 from Borland in Windowz. (Assuming it is installed under \Borland\BCC55)
- Open a DOS window
- Change directory to ~/src/interfaces/libpq
- PATH=\Borland\BCC55\Bin;%PATH%
- EDIT.EXE BCC32.MAK
and change cw32mti.lib to cw32mt.lib at line 163
- MAKE -N -DBCB=\Borland\BCC55 -f bcc32.mak

Under ./Release/ you will find blibpq.dll which you can rename to libpq8x.dll.

Maybe there is something I missed and created the dll incompatible with Deliphi. So I will appreciate if any one can try this and give us some clue. It might also help if someone can try building the dll with M$ comilers and contribute it here.

Thanks! :oops:
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

btw:

using the libpq.dll delivered with the 8.1 version of PostgreSQL works perfectly in my environment if you rename it to libpq8x.dll.

... working on a solution to get rid of this renaming-thing and make it more transparent for the users ... 8)

M.
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
User avatar
aperger
Expert Boarder
Expert Boarder
Posts: 129
Joined: 24.08.2005, 08:24
Location: Veszprém
Contact:

Post by aperger »

Hello,


Thanks


AGAIN and AGAIN....

Attila
leros
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 04.11.2005, 03:39
Location: Tatui

Leros

Post by leros »

Michael wrote:btw:

using the libpq.dll delivered with the 8.1 version of PostgreSQL works perfectly in my environment if you rename it to libpq8x.dll.

... working on a solution to get rid of this renaming-thing and make it more transparent for the users ... 8)

M.
Hi, i was working with a older version of zeos, and now with this post i actualized, but i get this same error with blob field. :(
I work with BCB 6, i compiled all right, only i did changed the included ile postgresql81 (in plain SRC directory) to 8x, else i was getting compile error.
btw what can i do, im seting up my application to run with it only tthis think is wrogn. thanks to all!!! :roll:

obs: PostgreSQL 8.1, chaged libpq.dll (from postgresql 8.1) to libpq8x.dll and included comerr32.dll. (program said that need)
You do not have the required permissions to view the files attached to this post.
User avatar
aperger
Expert Boarder
Expert Boarder
Posts: 129
Joined: 24.08.2005, 08:24
Location: Veszprém
Contact:

CVS or Edit the code

Post by aperger »

Hi,

I think this problem was solved in the latest CVS or you should modify the sourcecode according to the following:

PG Blob

Example

Attila
leros
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 04.11.2005, 03:39
Location: Tatui

Re: CVS or Edit the code

Post by leros »

aperger wrote:Hi,

I think this problem was solved in the latest CVS or you should modify the sourcecode according to the following:

PG Blob

Example

Attila
THANKS A LOT MEN!
this really work fine! THANK ONE MORE TIME!
User avatar
Burn
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 14.11.2005, 01:27

Post by Burn »

I rename the libpq.dll of postgre to libpq8x.dll and ther error continue. Acess Violation.
Post Reply