Page 1 of 1

UniDAC 6.4.14 / Custom dialog form issue

Posted: Tue 13 Sep 2016 08:16
by swierzbicki
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 ?

Re: UniDAC 6.4.14 / Custom dialog form issue

Posted: Tue 13 Sep 2016 09:21
by swierzbicki
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.

Re: UniDAC 6.4.14 / Custom dialog form issue

Posted: Wed 14 Sep 2016 09:10
by AlexP
hello,

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