|
-
February 2nd, 2009, 06:03 PM
#1
[RESOLVED] Stopping Prozess of a Backgroundworker
Hi !
I'm loading lots of Data into a DataTable with 10.000 ds of records.
So this needs a while I'm using DataAdapter and DataTable. All this is done in a backgroundprozess.
Now I want to be able to stop for example when the user decides to stop it by closing the form or by closing the application. I know stopping the backgroundworker could be done simple by calling the backgroundworker to Cncel async. But this canclation is pending as long as the dataAdapter still fills the table.
The question is: How can I stop the DataAdapter filling a table in a backgroundprozess.
Thx for any hints
 Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|