Protocol Ado = program crash
Protocol Ado = program crash
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
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
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Protocol Ado = program crash
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
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
Re: Protocol Ado = program crash
@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ł
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ł
Re: Protocol Ado = program crash
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
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
Re: Protocol Ado = program crash
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ł
Michał
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: Protocol Ado = program crash
@Norbert,
sounds realy weird. Any new informations?
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/
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/
Re: Protocol Ado = program crash
I tried the program again via remote maintenance on the server.
Enclosed the Windows event ... - no real help.
Enclosed the Windows event ... - no real help.
You do not have the required permissions to view the files attached to this post.
Re: Protocol Ado = program crash
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.
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
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.
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
Re: Protocol Ado = program crash
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
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
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: Protocol Ado = program crash
Hello Norbert,
Look @ viewtopic.php?f=50&t=129484
you can use the 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..
Look @ viewtopic.php?f=50&t=129484
you can use the
Code: Select all
DISABLE_ZPARAM
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/
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/
Re: Protocol Ado = program crash
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
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
Re: Protocol Ado = program crash
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
Norbert
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
Norbert
Re: Protocol Ado = program crash
Why, just why...? :D
Is there a "tearing my hair out" smiley on this forum?
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: Protocol Ado = program crash
Norbert, thanks for the feedback even if i had no time to reply. As aehimself notice ... what a *beep*
Could you point the developers to the Zeos8 TZParams? That would help you and others!
Could you point the developers to the Zeos8 TZParams? 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/
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/