I read every thread about using THREADS and had a look at the Thread-Demo, but it seems to be much to complicated with all this pointer stuff.
Reading about threads I realized, that creating a thread in Delphi is simple (using "New" "Thread object"). Creating a new TOraSession and TOraQuery Object is no problem BUT: How can I access the data, that was selected in the TOraQuery Object created within the Thread? (Without any synchronizing problems) and how can I signal the main thread, that execution of the query is finished (using TEvent?). I think, that the TOraQuery object created in the thread would be killed when the thread is finished (using FreeOnTerminate)?
So, would you please be so kind to give a small, simple code example for selecting data in a thread?
The most easyest way for me would be an integrated function in TOraQuery like "TOraQuery.StartAsThread" property (boolean) and "TOraQuery.ThreadFinished" Event
Many thanks in advance