Page 1 of 1

TpgConnection - Access Violation in Lazarus

Posted: Thu 29 Oct 2015 00:13
by dpremus
Hello

When I try to enter Database property of TpgConnection component design time Access Violation occurs.
I made test with windows version of Lazarus 1.4.2 (32/64bit) and Lazarus 1.4.4. (32/64bit). With Delphi everything works OK.

Workaround to avoid this exception is to paste correct ConnectionString property and set LoginPrompt
property to False.

Re: TpgConnection - Access Violation in Lazarus

Posted: Thu 29 Oct 2015 08:59
by AlexP
Hello,

We cannot reproduce the problem. Please specify the exact version of PgDAC.

Re: TpgConnection - Access Violation in Lazarus

Posted: Thu 29 Oct 2015 20:04
by dpremus
version of pgDac is 4.6.19 (professional with full source)

Re: TpgConnection - Access Violation in Lazarus

Posted: Fri 30 Oct 2015 07:20
by dpremus
I made same test on Ubuntu 12.04 (64 bits) with Lazarus 1.4.4. (64 bits).

An error occurs only if you click on database property design time.
If you set database property from code everything works fine.

Must be some problem with calling the property editor for database property of
TpgConnection but I don't know how to debug property editor.

Re: TpgConnection - Access Violation in Lazarus

Posted: Fri 30 Oct 2015 08:53
by azyk
Thank you for the information. We have reproduced this issue. We will investigate it and inform you as soon as we get any results.

Re: TpgConnection - Access Violation in Lazarus (solved)

Posted: Sat 31 Oct 2015 19:30
by dpremus
I found how to debug Lazarus IDE thanks to Lazarus community.

Exception raise in unit: PgConnectForm.pas at line 108.

Code: Select all

pServer.Visible := ConnectDialogOptions[i].Visible;
Real problem is in "pgConnectForm.lfm file. There is no definition for panels:
pUserName, pPassword, pServer, pPort, pDatabase, pSchema, pButtons
all this panels exists in pgConnectForm.dfm.

After recreating pgConnectForm.lfm from pgConnectForm.dfm everything works fine.

Best Regards

Danijel

Re: TpgConnection - Access Violation in Lazarus

Posted: Tue 03 Nov 2015 10:52
by azyk
We have fixed this problem. This fix will be included in the next PgDAC build.

If you need the pgConnectForm.lfm file containing the above fix, please let me know via email: andreyz*devart*com - and I will send it to you.