-
November 19th, 2018, 11:26 AM
#1
Why would sleep code exist in an event handler?
Im working on an existing WinForms app and I found an event handler that had immediate System.Threading.Sleep() calls in it in one of the events / cases. I found that odd behavior and so I eliminated the sleep from the event handler. This broke another case / event. When I put the sleep back in, system "sanity" was restored. Now my sanity is on the line because I don't like it. Should one ever sleep in an event handler? This seems like an awful slow way to do buisness.
ahoodin
To keep the plot moving, that's why.
-
November 20th, 2018, 01:12 AM
#2
Re: Why would sleep code exist in an event handler?
Does the sleep have a value or is it 0?
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
|