emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault and font corruption in menu under Windows


From: Ralf Angeli
Subject: Re: Segfault and font corruption in menu under Windows
Date: Thu, 12 Oct 2006 21:58:46 +0200

* Jason Rumney (2006-10-11) writes:

> There was a resource leak when popup menus were cancelled (by pressing 
> ESC) without selecting any option.
> To fix this, I initially tried freeing the resources when the 
> WM_EXITMENULOOP message was received, but this was too early for the 
> case where a menu action was selected, since the Lisp code was still 
> dealing with the selection at that point.

Currently it seems to be too late because freeing fails sometimes.
Perhaps something else has taken care of resources before the attempt
of freeing them is being made by calling `w32_free_menu_strings'.

An interesting detail might be that only menu entries displayed in
bold may become garbled.  These entries don't have an associated
action.

> It might be possible to fix this with careful use of synchronization 
> between the Lisp thread and the message loop, but there is already some 
> synchronous message passing in the menu code I think, so deadlocks may 
> be difficult to avoid.

Ugh, given the time I currently have for coding this is likely beyond
me.

-- 
Ralf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]