|
-
Sep 21st, 2022, 11:27 PM
#8
Re: X close button not closing the Form (hangs)
The Invoke method is synchronous, i.e. it doesn't return until the invoked method does. BeginInvoke is asynchronous, i.e. it returns immediately, not waiting for the invoked method to complete. I would guess that your call to Invoke would never return because the UI thread was blocked, thus preventing the invoked method completing. You may have had a deadlock somewhere.
Tags for this Thread
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
|