Page 1 of 1

Need help! (Passing LDA or SvcCtx to dll)

Posted: Thu 24 Apr 2014 05:25
by llleo
I have a lot of projects on Delphi3(BDE 4.50 !) and Delphi5 (ODAC 4.05/4.50/6.50/6.90).
To passing connection to DLL i use pLDA or pSvcCtx (like it used in BDESession.pas) instead or passion object TOraSession.

Code: Select all

procedure TSharedOraSession.DoConnect;
begin
  if not OCIInited then
    InitOCI;
  CreateIConnection;
  if Options.UseOCI7 then
  begin
    FIConnection.SetOCICallStyle(OCI73);
    FIConnection.SetLDA(FpLDA);
  end
  else
  begin
    FIConnection.SetOCICallStyle(OraCall.OCICallStyle);
    FIConnection.SetSvcCtx(FpSVC)
  end;
  inherited;
end;
This allow me pass connection between different ODAC and BDE verisons and awoid RTTI problem.

After upgrading to XE5 and ODAC 9, i can`t compile and use my projects becouse of ODAC initialization is changed.

How a can pass LDA or SvcCtx from external DAC (BDE or other version of ODAC or other DAC) to OraSession with ODAC 9.2 ???
If it impossible, my upgrade to XE5 and renewing ODAC is absolutely useless for me. :(((

Re: Need help! (Passing LDA or SvcCtx to dll)

Posted: Thu 24 Apr 2014 06:53
by jfudickar
The next version (as far as I know, this or next week) will solve the problem.

I had the same problem after switching from 9.1 to 9.2.

But now it's fixed, and thanks to the good support, it's working for me again.

Regards
Jens

Re: Need help! (Passing LDA or SvcCtx to dll)

Posted: Thu 24 Apr 2014 12:09
by AlexP
Hello,

In the next ODAC version, you will be able to use the following methods for these purposes:

Code: Select all

  OraSession1.AssignSvcCtx(FpSVC)
  OraSession1.OCISvcCtx.SetLDA(FpLDA)
P.S. We plan to release the new version within a week.

Re: Need help! (Passing LDA or SvcCtx to dll)

Posted: Fri 25 Apr 2014 05:28
by llleo
Good news.
Waiting for the next version.....