How stop execution of OracleCommand ?
401036May 20 2004 — edited May 21 2004Hi all!
I'm trying create some progress-bar of execution some work. This progress should can stop execution on user reguest. Therefore I'm create separate threads for working function and progress-bar class.
When user want to stop execution, on my progress-thread execute next code:
..
workerthread.Abort("User break")
..
In my work function :
...
do while i<5
i=i+1' if user abort occur in this point, all ok
loop
...
'create and initialize oracle connectio and command
MyDataReader=MyOracleCommand.Execute ' if user abort occur at this point, working thread not responding
My question is : how safe abort execution of OracleCommand ?
Thanks for any help !