Zeos in TService

Forum related to PostgreSQL

Moderators: gto, cipto_kh, EgonHugeist, olehs

Post Reply
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Zeos in TService

Post by Wild_Pointer »

Hello,

I'm trying to make SERVICE that does some work to DB. The problem is that I get "Requested database driver was not found" then I try to do Connected := true. I copyed the needed dll's to the project folder and to the windows\system32 but still no connection. What to do? I even tried to SetCurrentDir( ) to the directory where DLL are... Same result.

Zeos 6.6.2-RC
Delphi 2006
PostgreSQL 8.0


Thank you in advance.
sandeep_c24
Expert Boarder
Expert Boarder
Posts: 158
Joined: 06.11.2005, 01:43

Post by sandeep_c24 »

Have you set the Protocol property of the connection?

Sandeep
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Post by Wild_Pointer »

:D

Sure, I did. When I do connect in design mode its all OK, but after building the project and then starting the service I get the error mentioned above.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

I'm afraid this will need study of the search path used by Windows services. Can you also tell what OS version you are running on?

Mark
Image
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Post by Wild_Pointer »

OS: WindowsXP SP2
trupka
Expert Boarder
Expert Boarder
Posts: 140
Joined: 26.08.2007, 22:10

Post by trupka »

Works fine with me (D7, pgslq8.1 and 8.2) with DLLs in Windows\System32 directory but, some time ago, I encountered machines with invalid / broken ssleay32.dll and libeay32.dll which caused me similar problem. I "discovered" it because they have too high version numbers, like 1.x.x.x.

Maybe you should check dlls throughly...
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Post by Wild_Pointer »

trupka - could you send me your test project. I would test it on my computer. My email: kosh.mariux at gmail.com
trupka
Expert Boarder
Expert Boarder
Posts: 140
Joined: 26.08.2007, 22:10

Post by trupka »

Wild_Pointer - I don't have useful test project but I can send you "real" service application with removed unnecessary parts. Just give me few hours...
Post Reply