Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How stop execution of OracleCommand ?

401036May 20 2004 — edited May 21 2004
Hi 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 !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2004
Added on May 20 2004
2 comments
546 views