TpgConnection - Access Violation in Lazarus

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dpremus
Posts: 7
Joined: Fri 18 Jan 2013 05:09

TpgConnection - Access Violation in Lazarus

Post by dpremus » Thu 29 Oct 2015 00:13

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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TpgConnection - Access Violation in Lazarus

Post by AlexP » Thu 29 Oct 2015 08:59

Hello,

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

dpremus
Posts: 7
Joined: Fri 18 Jan 2013 05:09

Re: TpgConnection - Access Violation in Lazarus

Post by dpremus » Thu 29 Oct 2015 20:04

version of pgDac is 4.6.19 (professional with full source)

dpremus
Posts: 7
Joined: Fri 18 Jan 2013 05:09

Re: TpgConnection - Access Violation in Lazarus

Post by dpremus » Fri 30 Oct 2015 07:20

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.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: TpgConnection - Access Violation in Lazarus

Post by azyk » Fri 30 Oct 2015 08:53

Thank you for the information. We have reproduced this issue. We will investigate it and inform you as soon as we get any results.

dpremus
Posts: 7
Joined: Fri 18 Jan 2013 05:09

Re: TpgConnection - Access Violation in Lazarus (solved)

Post by dpremus » Sat 31 Oct 2015 19:30

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

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: TpgConnection - Access Violation in Lazarus

Post by azyk » Tue 03 Nov 2015 10:52

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.

Post Reply