Whenever we work on Datamodule
on the connection component, we enable it to do tests and the like. It turns out that if we forget to deactivate when compiled, it can give an error when we send to the client due to IP or user and password to be different in development and production.
I use the TZConnection
component of Zeos, but I think this goes for everyone.
I wonder if you can disable the component before or onCreate
of form
. I have already seen that in the onCreate
event it does not work, because it activates the connection even before onCreate
.