Re: Allowing a method to timeout

Peter Ritchie <[email protected]> Fri, 11 Jan 2008 15:11:51 -0500
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <LISTSERV%[email protected]>
Are you using the SPIF_SENDCHANGE flag?  This will broadcast the
WM_SETTINGCHANGE message to all windows and block SystemParametersInfo
until all windows respond.  If you called SystemParametersInfo on the main
GUI thread then that thread is blocked waiting for SystemParametersInfo
and will be unable to respond to WM_SETTINGCHANGE.