James Savage
Member
Hi
I have a TOracleQuery with
- Threaded:=True
- ThreadSynchronized:=True
- session.ThreadSafe:=True
The SQL in the query can change but it's always a select statement which I want users to be able to cancel the before it's returned all the results. To do this when the press the 'Stop' button I run the following code
For some reason if the query has finished running on the server and results have started to be brought back the BreakThread call doesn't seem to work. Stepping through the code once I get to the BreakThread line the application carries on and none of the lines under BreakThread get executed. This doesn
I have a TOracleQuery with
- Threaded:=True
- ThreadSynchronized:=True
- session.ThreadSafe:=True
The SQL in the query can change but it's always a select statement which I want users to be able to cancel the before it's returned all the results. To do this when the press the 'Stop' button I run the following code
Code:
LocalQuery.Session.BreakExecution;
LocalQuery.BreakThread;
For some reason if the query has finished running on the server and results have started to be brought back the BreakThread call doesn't seem to work. Stepping through the code once I get to the BreakThread line the application carries on and none of the lines under BreakThread get executed. This doesn