Strange "Connection is not defined" error

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

Strange "Connection is not defined" error

Post by swierzbicki » Mon 06 Jul 2015 08:01

Hello,

I'm getting an "Connection is not defined" error after setting the active property to true.
UniQuery component does have it's connection property defined (SQLite) and the database + database path exists too !

Any idea ?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Strange "Connection is not defined" error

Post by MaximG » Mon 06 Jul 2015 11:42

We continue investigation of this issue, and we will inform you about the results shortly.

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

Re: Strange "Connection is not defined" error

Post by swierzbicki » Mon 06 Jul 2015 16:15

Please, this is really irritating...
I guess you will find this bug.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Strange "Connection is not defined" error

Post by MaximG » Thu 09 Jul 2015 13:44

Investigation of this problem showed, that the error occurs either due to module loading disorder or due to early call of the TComponent.Loaded method - before the Connection of the Query is set, which leads to «Connection is not defined». The problem is reproduced on all the standard data access components. We have posted the bug description to Embarcadero: https://quality.embarcadero.com/browse/RSP-11440 . A temporary workaround is to place the components in one Data Module.

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

Re: Strange "Connection is not defined" error

Post by swierzbicki » Fri 10 Jul 2015 08:18

Thank you for the feedback.
I'll move all unidac components to the datamodule.

Post Reply