Results 1 to 2 of 2

Thread: BGW Open From slows process

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    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

  2. #2
    Fanatic Member coolcurrent4u's Avatar
    Join Date
    Apr 2008
    Location
    *****
    Posts
    993

    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.
    Programming is all about good logic. Spend more time here


    (Generate pronounceable password) (Generate random number c#) (Filter array with another array)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width