Hello,
I have searched far and wide, and i found millions of post telling "BAD" or "you should have regular checks" but that wont work for me.
the problem is, i have a program that is all about queries. the thread.abort function does not trigger in the middle of a query. now this is a lengthy query on a slow server, and just using timeout wont work because then i will almost never get the query. (3 out of 20 i estimate)
but the impatient users might want to bash a cancel button and retry.
what i want is the thread killed. but still usable. again, thread abort is not the way for me because i want to kill it mid-query.
any way to do this?
I have searched far and wide, and i found millions of post telling "BAD" or "you should have regular checks" but that wont work for me.
the problem is, i have a program that is all about queries. the thread.abort function does not trigger in the middle of a query. now this is a lengthy query on a slow server, and just using timeout wont work because then i will almost never get the query. (3 out of 20 i estimate)
but the impatient users might want to bash a cancel button and retry.
what i want is the thread killed. but still usable. again, thread abort is not the way for me because i want to kill it mid-query.
any way to do this?
Comment