Allowing a method to timeout
"Bhatnagar, Amit" <[email protected]> Fri, 11 Jan 2008 13:15:45 -0700
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
Hi All. I am finding that my win32 call to SystemParametersInfo in my FormClosing event handler sometimes hangs my application preventing it from terminating. Is there a way where I could make the call but after a timeout period then continue executing the rest of my FormClosing code? Place this in a thread? I'd like to make the solution generic enough so that I could timeout any method. Any ideas? The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message. Thank you.