I made a small application that connects to mysql db using dbx. It works fine with my local mysql server, but it should work with the remote server.
Connecting to a remote server takes a few seconds, which delays the application.
So my question is: how can I put the connection code in another thread?
I need to somehow pass this connection to the main thread, so the dbgrid that I have on the main form works.
I read that db files running on another thread should have their own connections. So I'm not sure how to do what I want.
Any ideas? Anything to read about working with remote servers?
Thanks.
Edit: the components I use in the form: TSQLConnection -> TSimpleDataSet> TDataSource> TDBGrid.
Mario source
share