Form hanging for 5 mins

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adil syed

    #1

    Form hanging for 5 mins

    I am using background processor to fill datagridview.
    I am opening the same form multiple times.
    If i close one form then application freezes for 5 minutes.
    Pls help me on this....
  • Aimee Bailey
    Recognized Expert New Member
    • Apr 2010
    • 197

    #2
    The form is acually not the program, when you create a background worker, your program will stay open as long as the worker needs to complete it's task, even if you close a form that is running in an application. If you spawn a background worker from a form, you may find the form will wait for the background worker to finish before it closes, during this period the form is said to be 'closing', and no further interaction is possible.

    Aimee.

    Comment

    Working...