Archive: SendMessage Problem


SendMessage Problem
My installer stops responding when I call this code, in the latest (RC1) version.

SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0
Vytautas :(

Sorry, it was another program intercepting that call and causing the installer to stop. After closing that program it worked fine.

Vytautas


You should never send to HWND_BROADCAST without timeout. Timeouts prevent this.


Thanks kichik, as a guideline how long a timeout should I use?

Vytautas


Depends on how long you are willing to wait and whether you know of a specific program you want to wait for will take a certain time to respond. I usually use 5 seconds.