Page 1 of 1

TUniConnectDialog.execute AV

Posted: Thu 17 Sep 2009 16:55
by costa
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)

Posted: Fri 18 Sep 2009 07:00
by Plash
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.