Page 1 of 1

Zeos in TService

Posted: 28.03.2008, 08:41
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.

Posted: 28.03.2008, 09:25
by sandeep_c24
Have you set the Protocol property of the connection?

Sandeep

Posted: 28.03.2008, 09:34
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.

Posted: 28.03.2008, 09:37
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

Posted: 28.03.2008, 09:40
by Wild_Pointer
OS: WindowsXP SP2

Posted: 28.03.2008, 09:41
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...

Posted: 28.03.2008, 10:07
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

Posted: 28.03.2008, 11:39
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...