MySQLConnection turns on Connected property
Posted: Wed 19 Sep 2012 21:38
I have a MyDAC v7.2 TMyConnection component on an IntraWeb TIWUserSessionBase form. This form is similar to a normal Delphi datamodule.
My problem is that for a number of reasons, I have to hold off connecting to my database until certain actions have been completed in my application. The initialization takes place after the datamodule has been created.
Unfortunately this component automatically sets its own Connected property to True if you make changes to any of the TMyQuery components on the same form!
This causes my IntraWeb app to crash on startup, if I forget to set Connected=FALSE manually before recompiling.
I have Options|KeepDesignConnected set to True.
Is this a bug, or is there some way to suppress this behavior?
Best regards,
Kevin G. McCoy
My problem is that for a number of reasons, I have to hold off connecting to my database until certain actions have been completed in my application. The initialization takes place after the datamodule has been created.
Unfortunately this component automatically sets its own Connected property to True if you make changes to any of the TMyQuery components on the same form!
This causes my IntraWeb app to crash on startup, if I forget to set Connected=FALSE manually before recompiling.
I have Options|KeepDesignConnected set to True.
Is this a bug, or is there some way to suppress this behavior?
Best regards,
Kevin G. McCoy