Problems with UniDAC Demo

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gman
Posts: 10
Joined: Tue 13 Sep 2011 14:36

Problems with UniDAC Demo

Post by gman » Sun 18 Sep 2011 17:47

I am using the latest version (Trial) of UniDAC, with Delphi 2010. Install went fine. I am able to load the UniDacDemo and compile / run it. However, when I load it into the IDE, I get the message "Error Creating form: Ancestor for TDemoForm not found". The app compiles and runs, but I am not able to view any of the forms when in the IDE.

I want to see what the ConnectDialog form does...
I go to the ConnectDialog folder.
I doubleclick on ConnectDialog.dfm, and I get a similar message "Error creating form: Ancestor for 'TDemoFrame' not fouind.

I can view the ConnectDialog.pas, but not the DFM file. I can compile and run, but the frame/ancestor forms is not working well.. What can I do?

Thanks,
GS

AndreyZ

Post by AndreyZ » Mon 19 Sep 2011 10:48

Hello,

Thank you for the information. We have reproduced the problem and investigation of the problem is in progress. As soon as we have any results we will let you know.
As a workaround, you can replace the following code in all .pas files of UniDACDemo where it exists:

Code: Select all

{$IFDEF WIN32_64}
{$R *.dfm}
{$ENDIF}
with the following code:

Code: Select all

{$IFDEF MSWINDOWS}
{$R *.dfm}
{$ENDIF}

gman
Posts: 10
Joined: Tue 13 Sep 2011 14:36

That only causes other problems....

Post by gman » Mon 19 Sep 2011 11:53

OK, I have done that, now I get a whole bunch of errors stating "Module 'Connect Dialog' links to module UniDacForm' which cannot be found in the current project. Do you wish to remove/redirect the links to another module?

I try to fix this error, and then it changes from ConnectDialog to module QueryFrame, etc, etc...

Please provide a WORKING DEMO for your product...

Thanks,
George S

AndreyZ

Post by AndreyZ » Mon 19 Sep 2011 14:55

I cannot reproduce this problem. Please try the following:
- uninstall UniDAC;
- install UniDAC;
- make changes that I described in my previous post.
Does this solve the problem? If the problem persists, please specify the full version of RAD Studio 2010 you are using, for example, RAD Studio 2010 14.0.3513.24210 Architect.

dennisyu
Posts: 3
Joined: Thu 25 Aug 2011 03:52

Found the bug

Post by dennisyu » Wed 21 Sep 2011 03:56

I also encountered this problem, but solved.
1. Open the project, then open DemoForm.pas
2. in line 169, found the 'WIN32_64'
3. replace it with 'MSWINDOWS'
Run it again, problem solved. Try it, may be it works for you too.

Post Reply