Page 1 of 1

TConnectDialog - GetServerList AccessViolation !!

Posted: Thu 29 May 2008 11:27
by paolo
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

Posted: Fri 30 May 2008 08:00
by Plash
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);