Trying to get actual error message with TZConnection for Firebird Database

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
sharifuldead
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 18.07.2018, 19:39

Trying to get actual error message with TZConnection for Firebird Database

Post by sharifuldead »

I am trying to get actual error message on connecting to Firebird database with TZConnection. But both gives me overall error message, please check the following messages. How can I get actual error message like if I enter wrong password it will provide actual firebird error message.

SQL Error: connection lost to database. Error Code: -901. can't format message 13:99 -- message file C:\WINDOWS\SYSTEM32\firebird.msg not found
StatusCode:
ErrorCode:-901


whereas with Delphi Tokyo 10.2.3 with the same version of zeos 7.2.4 I got following:
Delphi Tokyo with pl_ZeosDBO 7.24 stable SQL Error: I/O error during "CreateFile (open)" operation for file "E:\TAUTUA.FDB645" Error while trying to open file The system cannot find the file specified. . Error Code: -902. can't format message 13:98 -- message file C:\WINDOWS\SYSTEM32\firebird.msg not found
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1935
Joined: 17.01.2011, 14:17

Re: Trying to get actual error message with TZConnection for Firebird Database

Post by marsupilami »

Hello,

hmm - usually Firebird is telling you much more. Zeos only checks for an error and then asks Firebird to describe the error. This part seems to fail on your system:
can't format message 13:99 -- message file C:\WINDOWS\SYSTEM32\firebird.msg not found
can't format message 13:98 -- message file C:\WINDOWS\SYSTEM32\firebird.msg not found
Which version of Firebird do you use? Do you load the client lib from the firebird installation directory? Usually the firebird.msg lies right next to the fbclient.dll? Please use the ZConnection.LibraryLocation property to specify the correct path.

Best regards,

Jan
Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 280
Joined: 08.05.2014, 12:08

Re: Trying to get actual error message with TZConnection for Firebird Database

Post by Fr0sT »

What's the sense of making two threads with identical question but differing subjects? I replied to you in another thread.
Post Reply