Error compiling PgDacDemo

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
hwd
Posts: 11
Joined: Sun 09 May 2010 17:27

Error compiling PgDacDemo

Post by hwd » Fri 20 Jan 2012 14:43

Hello,

i had installed the Demo-Version of PgDac and today installed the Pro Version over it.
Then i tried to compile the PgDacDemo. On opening the demo i get an
error:
[Window Title]
Fehler

[Content]
Fehler beim Erzeugen von Formular: Vorfahr für 'TPgConnectForm' nicht gefunden.

[OK]

Error creating form: Ancestor for 'TPgConnectForm' not found.

After that i tried to compile the demo.
There i get the info that PgDacVcl can not resolved.

Any idea what is wrong?

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

Post by AlexP » Mon 23 Jan 2012 11:26

Hello,

Please specify the following information:
- The name and the full version of your IDE;
- The full version of PgDAC;

hwd
Posts: 11
Joined: Sun 09 May 2010 17:27

Post by hwd » Mon 23 Jan 2012 15:17

Here are the Infos:
PgDac 3.1.4 Professional for Rad Studio XE2
Embarcadero® RAD Studio XE2 Version 16.0.4358.45540 Enterprise

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

Post by AlexP » Fri 27 Jan 2012 10:29

Hello,

This problem is due to the RadStudio XE2 behaviour when opening projects created in older versions of Delphi. For solving the problem, open the Demo project in RadStudio XE2 and re-save it. When re-opening, this problem doesn't occur.

hwd
Posts: 11
Joined: Sun 09 May 2010 17:27

Post by hwd » Fri 27 Jan 2012 13:38

Sorry, that did not solve the problem.
But finally i found the problem and the solution.
The demo tries to generate the *.dcu´s in the lib directory of the pgDac installation. The standard path is a subdirectory of programs.
Windows 7 does not allow writing in this directories.
Setting the path for dcu output in the project setting to an allowed path solves the problem.

Best regards

HWD

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

Post by AlexP » Mon 30 Jan 2012 13:33

Hello,

Glad to see that you solved the problem.
If you have any other questions, feel free to contact us.

Post Reply