Hi All,
I am using Delphi 2010 to run Asynchronous queries.
whosrdaddy's code example from thread102-1764605 allows me to cancel long running queries. I now need to catch exceptions in my Async ADOQuery. For example, if I run this query "SELECT * FROM NotATable" (where the table does not exist), should exit with the message invalid object name, but the app just hangs. The message only shows once I stop the app. The same thing happens with a timeout.
How can I capture these events, ie there is an error in the SQL or a timeout has occurred?
Grateful for any advice,
NiMuSi
I am using Delphi 2010 to run Asynchronous queries.
whosrdaddy's code example from thread102-1764605 allows me to cancel long running queries. I now need to catch exceptions in my Async ADOQuery. For example, if I run this query "SELECT * FROM NotATable" (where the table does not exist), should exit with the message invalid object name, but the app just hangs. The message only shows once I stop the app. The same thing happens with a timeout.
How can I capture these events, ie there is an error in the SQL or a timeout has occurred?
Grateful for any advice,
NiMuSi