UniDAC 6.4.14 / Custom dialog form issue

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

UniDAC 6.4.14 / Custom dialog form issue

Post by swierzbicki » Tue 13 Sep 2016 08:16

Hello,

I've a strange issue as I can't register my custom dialog form anymore.

Code: Select all

'first chance' Exception  at $74B996C2. exception class EClassNotFound with message 'TfmConnectiondialog class not found'.
TfmConnectiondialog is correctly registered but GetClass('TfmConnectiondialog') always return nil

Code: Select all

Initialization
If GetClass('TfmConnectiondialog') = Nil Then
  Classes.RegisterClass(TfmConnectiondialog);
And connection DialogClass is correctly set :

Code: Select all

UniConnectDialog1.DialogClass := 'TfmConnectiondialog';
UniDAC demo is working fine... Go figure ?

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Re: UniDAC 6.4.14 / Custom dialog form issue

Post by swierzbicki » Tue 13 Sep 2016 09:21

I've found....

My application is a VCL one.
I've inadvertently added an FMX.Forms in one of my unit.

Because of this, Classes.RegisterClass failed without throwing an exception....
Removing FMX.Forms solved my problem.

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

Re: UniDAC 6.4.14 / Custom dialog form issue

Post by AlexP » Wed 14 Sep 2016 09:10

hello,

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

Post Reply