|
-
Jun 13th, 2011, 12:04 AM
#1
Thread Starter
Frenzied Member
BGW Open From slows process
I am using the BGW to run a long loop of several thousand records against several thousand records. If I open another form in the project then the process slows down dramatically, that is because in the Form I am opening has a DGV tied to Table that is being used in my loop process, so I understand why the process slows down.
What i am wondering and experimenting with is how to close the form and have the process resume to "Full Speed" if possible
I tried
Closing the form verse Hiding it and DGV.DataSource = Nothing
Thinking that would unbind it?? and free up resources?
Any ideas??
Thanks
-
Jun 13th, 2011, 05:30 AM
#2
Fanatic Member
Re: BGW Open From slows process
put all your data in a variable, either dataset of list(of), and work on it.
to avoid data corruption or race condition, make sure only one background thread is working on the data at once.
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
|