emacs-devel
[Top][All Lists]
Advanced

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

Re: GC garbles menu items (was: tooltip can be displayed outside the scr


From: Richard M. Stallman
Subject: Re: GC garbles menu items (was: tooltip can be displayed outside the screen)
Date: Sat, 17 Dec 2005 19:00:12 -0500

    I can reproduce this bug only on non-toolkit builds.

Aha, now I see.  The non-toolkit definition of xmenu_show copies the
addresses of string text directly into the non-toolkit menu data.
When GC happens, it relocates the strings and garbles the text.

Could you rewrite that code to copy the strings when making the menus,
and free the copies at the end?


I think that code was written before we made Emacs GC during idle time
and before there were timers.  Back then, it was probably impossible
to GC while the menu was up.




reply via email to

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