Cancelling a Query running in a thread
Posted: 19.01.2010, 04:53
Hi all,
how can I cancel a Zquery, which is opening in an other thread?
The Query opens some quite huge amount of data, which is displayed afterwards in a Grid.
I perform the Zquery.open call inside a separate thread, so my main Form will not be frozen.
But, the user can close this form while the thread is running. I wish to stop the thread and more importantly the Query. Is there any nice way to do it?
Many Thanks
Pawel
how can I cancel a Zquery, which is opening in an other thread?
The Query opens some quite huge amount of data, which is displayed afterwards in a Grid.
I perform the Zquery.open call inside a separate thread, so my main Form will not be frozen.
But, the user can close this form while the thread is running. I wish to stop the thread and more importantly the Query. Is there any nice way to do it?
Many Thanks
Pawel