I want to design my TFDQuery
using the component editor, i.e. set the SQL string, options etc. during design-time and then use the query in a thread.
My problem is that each running instance of the thread needs its own instance of the query - otherwise it will not be thread-safe.
Should I clone the query when the thread starts running, i.e. in the Execute method of the thread, and then set its connection - if so, how? Or is there a better way to do this?
Thank You