TUniConnectDialog.execute AV

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
costa
Posts: 30
Joined: Thu 27 Aug 2009 20:30

TUniConnectDialog.execute AV

Post by costa » Thu 17 Sep 2009 16:55

procedure TForm2.Button1Click(Sender: TObject);
begin
UniConnectDialog1.Execute;
end;

First chance exception at $7C812A6B. Exception class EAccessViolation with message 'Access violation at address 00502870 in module 'Project2.exe'. Read of address 000000E4'. Process Project2.exe (5760)

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

Post by Plash » Fri 18 Sep 2009 07:00

TUniConnectDialog is not intended for such use. Probably the exception occurs because the Connection protected property of the component is not assigned.

You should assign the connect dialog to the ConnectDialog property of TUniConnection. It will be shown when you open the connection.

Post Reply