Protocol Ado = program crash

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Protocol Ado = program crash

Post by nlanger »

My new program with Zeo7.3 and OleDb protocol is already running successfully on several computers with Windows 10 using an MS SQL Server 2014 database.

Now I have a network wirth 8 Clients with Windows 10. The program does not work on all clients. The program starts - but immediately crashes again without an error message. If I set "Protocol = Ado" in ZConn, it works.

I'm using MSOLEDBSQL.1 or SQLOLEDB.1 as providers, both of which work with "Ado". Neither of them work with OleDB.

Is a service, a network protocol or something similar missing on the client or the SQL Server?

---------
Norbert
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1918
Joined: 17.01.2011, 14:17

Re: Protocol Ado = program crash

Post by marsupilami »

Hello Norbert,

this sounds strange. Is there a message in the Windows Application log? Maybe you could try madExcept or the Delphi remote debugger?

Best regards,

Jan
miab3
Zeos Test Team
Zeos Test Team
Posts: 1309
Joined: 11.05.2012, 12:32
Location: Poland

Re: Protocol Ado = program crash

Post by miab3 »

@nlanger;

For me it works on 6 computers simultaneously:
SERVER-MSSQL Express 2014-Win64
Protocol:oleDB
Database:Provider=SQLOLEDB.1;Password=**;Persist Security Info=True;User ID=**;Initial Catalog=test;Data Source=**\SQLEXPRESS
Delphi 10.3.3-Win32 Zeos8 svn7215

Do you have installed msoledbsql.msi on all clients?

Michał
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Re: Protocol Ado = program crash

Post by nlanger »

Hello Michał
For testing purposes, I installed msoledbsql.msi on each client beforehand. And use ...
Protocol: oleDB
Provider=MSOLEDBSQL.1;Persist Security Info=True;User ID=Test;MARS Connection=True;Data Source=Server1;Initial Catalog=DB01

Delphi 10.4 Win32 Zeos 7.3.1-beta

I have the same application on 5 different customer networks. It works fine there.

When I'm back with the customer, I'll follow up Jan's tip and look for the Windows Application log etc.

Norbert
miab3
Zeos Test Team
Zeos Test Team
Posts: 1309
Joined: 11.05.2012, 12:32
Location: Poland

Re: Protocol Ado = program crash

Post by miab3 »

What does this Zeos 7.3.1-beta mean? For three months now, a version called Zeos 8.0.0-beta has been in development, and its current revision is svn 7227.

Michał
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: Protocol Ado = program crash

Post by EgonHugeist »

@Norbert,

sounds realy weird. Any new informations?
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Re: Protocol Ado = program crash

Post by nlanger »

I tried the program again via remote maintenance on the server.
Enclosed the Windows event ... - no real help.
You do not have the required permissions to view the files attached to this post.
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Re: Protocol Ado = program crash

Post by nlanger »

Hello Michal

Why do I use version 7.3 and not 8.0?

You changed the ZQuery.Params from 8.0. The new type TZParam no longer works in the Quick Report Designer. :x
But that means that over 100 forms have been created for my customers.

Unfortunately, the Quick Report Designer incorporates the components and their properties in its form definitions.

https://www.quickreport.co.uk

Norbert
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Re: Protocol Ado = program crash

Post by nlanger »

I found the mistake. I was able to establish and debug a VPN connection from the Delphi10 client to the SQL server.

I use the Rx-Tools with the component TRxMemDS (a query as memory-table). When program starting, an SQL query is executed which returns a field which was "Numeric (18,3)" => "BCD overflow" occurred here and the program crashed without a message. I changed the field to "Numeric (9,3)" - that's enough at this point.

A different field type is apparently supplied with Protocol=ADO.

there is just nothing about debugging :)

Norbert
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: Protocol Ado = program crash

Post by EgonHugeist »

Hello Norbert,
Look @ viewtopic.php?f=50&t=129484
you can use the

Code: Select all

DISABLE_ZPARAM
conditional define as a workaround.

Anyway it would be nice to know if the value could be read correctly if we're on same bandwith..
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Re: Protocol Ado = program crash

Post by nlanger »

Hi Michael

I have good news and bad news :-)
I downloaded the Zeos8 package on January 5th, 2021 and today.

That from January 5th, 2021 works fine with "DISABLE_ZPARAM" in Zeos.inc (also in the QuickReport Designer).
The version from today works in all other sources, but in the QuickReport Designer the message "invalid parameter type" appears when the query is opened.

I'll take the one from January 5th, 2021 first.

Norbert
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Re: Protocol Ado = program crash

Post by nlanger »

Hi Michael

When I set the date format to DD.MM.YYYY, the QuickReport-Designer also works with the current Zeos8 version (with DISABLE_ZPARAM), because internally the date is passed to the parameters as text.

so everything ok :D
Norbert
User avatar
aehimself
Zeos Dev Team
Zeos Dev Team
Posts: 765
Joined: 18.11.2018, 17:37
Location: Hungary

Re: Protocol Ado = program crash

Post by aehimself »

nlanger wrote: 17.03.2021, 14:02QuickReport-Designer [...] internally the date is passed to the parameters as text
Why, just why...? :D
Is there a "tearing my hair out" smiley on this forum?
Delphi 12.1, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: Protocol Ado = program crash

Post by EgonHugeist »

Norbert, thanks for the feedback even if i had no time to reply. As aehimself notice ... what a *beep* :censored:
Could you point the developers to the Zeos8 TZParams? :chef: That would help you and others!
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Post Reply