TConnectDialog - GetServerList AccessViolation !!

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
paolo
Posts: 27
Joined: Wed 06 Apr 2005 12:24

TConnectDialog - GetServerList AccessViolation !!

Post by paolo » Thu 29 May 2008 11:27

Version 6.50.0.34

The following procedure cause an access violation

procedure TForm3.Button1Click(Sender: TObject);
begin
FConnectDialog := TConnectDialog.Create(Self);
FConnectDialog.GetServerList(ComboBox1.Items);
end;

Bye

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 30 May 2008 08:00

To prevent the error set Session for the TConnectDialog component:

Code: Select all

  FConnectDialog := TConnectDialog.Create(Self);
  TDBAccessUtils.SetConnection(FConnectDialog, OraSession1);
  FConnectDialog.GetServerList(ComboBox1.Items);

Post Reply