Failover demo error and disconnetedmode question.
Posted: Tue 18 Jan 2011 15:35
The is the step I done to your failover demo of the latest MyDAC version :
1. Setup the connection info of Data.Connection
2. Run the program
3. Enable Pooling
4. Open Tables
5. Make some modification.
6. Stop and restart MySQL server
7. Apply update
Then it will have below expected exception :
Project FailOver.exe raised exception class EMySqlException with message 'Lost connection to MySQL server during query'.
Followed by an unexpected AV exception :
Access violation at address 75D73F6D in module 'KERNELBASE.dll'. Read of address 0194F000.
It located at the Mainform ConnectionConnectionLost procedure when accessing Component.Name
When in disconnected mode, running FieldDefs.Update will make the connection constantly connected! Is it the planned effect? I need to run that command so that I can create the fields so that I can add in other lookup and calculated fields in runtime based on user setting. However, I still want the connection in disconnect mode because the network is not so stable. How to achieve this?
1. Setup the connection info of Data.Connection
2. Run the program
3. Enable Pooling
4. Open Tables
5. Make some modification.
6. Stop and restart MySQL server
7. Apply update
Then it will have below expected exception :
Project FailOver.exe raised exception class EMySqlException with message 'Lost connection to MySQL server during query'.
Followed by an unexpected AV exception :
Access violation at address 75D73F6D in module 'KERNELBASE.dll'. Read of address 0194F000.
It located at the Mainform ConnectionConnectionLost procedure when accessing Component.Name
When in disconnected mode, running FieldDefs.Update will make the connection constantly connected! Is it the planned effect? I need to run that command so that I can create the fields so that I can add in other lookup and calculated fields in runtime based on user setting. However, I still want the connection in disconnect mode because the network is not so stable. How to achieve this?