R
Robin Tucker
Some thread confusion to lighten up your day:
I have a worker thread and a main form. When the user clicks the Close icon
in the top right of the form, my program tells the thread to "stop". The
thread will then complete its current operation and "Invoke" a method on the
form telling it it has completed. The completed handler then calls Me.Close
(). The trouble is, I seem to have some deadlock here - I mean after I call
Me.Close(), does the form exit the method, return to the thread etc.?
How exactly can a worker thread shut down the form that created it!???
Any ideas?
Cheers
Robin
I have a worker thread and a main form. When the user clicks the Close icon
in the top right of the form, my program tells the thread to "stop". The
thread will then complete its current operation and "Invoke" a method on the
form telling it it has completed. The completed handler then calls Me.Close
(). The trouble is, I seem to have some deadlock here - I mean after I call
Me.Close(), does the form exit the method, return to the thread etc.?
How exactly can a worker thread shut down the form that created it!???
Any ideas?
Cheers
Robin