TOraServerEnumerator moved from OraServices to OraServerEnumerator

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
tswedrowski
Posts: 9
Joined: Mon 16 Mar 2015 12:58

TOraServerEnumerator moved from OraServices to OraServerEnumerator

Post by tswedrowski » Fri 10 Jul 2015 17:37

Hello.
I was using ODAC version 9.4.14 and 9.5.15. Today I have installed newest 9.5.17, but it is not backward compatible with 9.5.15, because class TOraServerEnumerator was moved from OraServices to OraServerEnumerator.

On production I must use 9.4.14, because newer versions make some problems (AccessViolation) while closing my application (I didn't figure out yet why). In development I want to use newest version.
So, I need source code compatible both with 9.4.14/9.5.15 and 9.5.17.

For 9.4.14 and 9.5.15 I must use:

Code: Select all

uses OraServices;
...
var Enum: TOraServerEnumerator;
For 9.5.17:

Code: Select all

uses OraServerEnumerator;
...
var Enum: TOraServerEnumerator;
Question - how to make code compatible with both ODAC versions? Are there any DEFINEs with ODAC version, something like:

Code: Select all

uses
{$IFDEF ODAC9.5.15}OraServices;{$ENDIF}
{$IFDEF ODAC9.5.17}OraServerEnumerator;{$ENDIF}
...
var Enum: TOraServerEnumerator;
I need to call Enum.GetServerList. My code looks exactly like code in second comment in this thread:
http://forums.devart.com/viewtopic.php?f=5&t=15613

Any ideas?

Best regards,
Tomasz

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TOraServerEnumerator moved from OraServices to OraServerEnumerator

Post by AlexP » Mon 13 Jul 2015 11:21

Hello,

No options (DEFINE) to return to the old behavior. To use this class you should add a new module.

Post Reply