First, I couldn't get the idea how one can reply to a post on SF, so I'm starting a new thread (the only choice available:-(
Yes, I'd like to be able to use Direct SQL - Delphi asynchronously. I have actually created a thread myself that creates TMySQLClient and processes all the requests from the main thread. So I'd be glad to see someone has done the work for me;-)
The user of my future app will have a pretty fast connection but the TMySQLClient.connect still takes several seconds. So I have decided to do everything in the separate thread. When the main form initializes, it displays a login dialog, but opens a SQL connection in the background:-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
About the connect ...check the new version as the connect now should be very fast (the maximum time it takes is equal with the connecttimout value -take care with it as a value to small may report can't connect to host)
Regards,
Cristian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, I couldn't get the idea how one can reply to a post on SF, so I'm starting a new thread (the only choice available:-(
Yes, I'd like to be able to use Direct SQL - Delphi asynchronously. I have actually created a thread myself that creates TMySQLClient and processes all the requests from the main thread. So I'd be glad to see someone has done the work for me;-)
The user of my future app will have a pretty fast connection but the TMySQLClient.connect still takes several seconds. So I have decided to do everything in the separate thread. When the main form initializes, it displays a login dialog, but opens a SQL connection in the background:-)
About the connect ...check the new version as the connect now should be very fast (the maximum time it takes is equal with the connecttimout value -take care with it as a value to small may report can't connect to host)
Regards,
Cristian