Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old October 20, 2010, 15:50   #1
UniqueName
Scout
 
Join Date: Sep 2010
Posts: 32
UniqueName is on a distinguished road
Bug: Windows font change

I get a hang sometimes in the following code

SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);

Rebooting clears up the offending receiver but maybe it can be changed to a non-blocking call. I currently encounter this problem in S but this code seems common to all variants. Or maybe someone has suggestions on finding the blocking app? I guess I can try killing processes until I find the blocker.
UniqueName is offline   Reply With Quote
Old October 20, 2010, 15:55   #2
UniqueName
Scout
 
Join Date: Sep 2010
Posts: 32
UniqueName is on a distinguished road
Well I found the blocker, a hung iexplore. MSDN specifically says to do it this way but it still seems dangerous to me.
UniqueName is offline   Reply With Quote
Old October 20, 2010, 22:29   #3
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,947
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by UniqueName View Post
I get a hang sometimes in the following code

SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);

Rebooting clears up the offending receiver but maybe it can be changed to a non-blocking call. I currently encounter this problem in S but this code seems common to all variants. Or maybe someone has suggestions on finding the blocking app? I guess I can try killing processes until I find the blocker.
V fixed this in January 2009, I think other people have copied the relevant code since then. Just change SendMessage to PostMessage and the trick is done.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old October 21, 2010, 20:35   #4
camlost
Sangband 1.x Maintainer
 
camlost's Avatar
 
Join Date: Apr 2007
Posts: 523
camlost is on a distinguished road
I updated this in S (r141).
__________________
a chunk of Bronze {These look tastier than they are. !E}
3 blank Parchments (Vellum) {No french novels please.}
camlost is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font size on ubuntu? AltF4 Vanilla 5 October 27, 2010 21:33
WinXP font problem YeGoblynQueenne Development 6 July 14, 2010 17:03
r1264 bug: crash at prompt (Windows) Colbey Vanilla 11 February 13, 2009 17:39
Font Change in SVN code? pesachyonah Vanilla 4 June 28, 2008 17:45
How to change font in angband (linux)? danvari Vanilla 3 February 28, 2008 14:44


All times are GMT +1. The time now is 00:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.