unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6414: f->output_data.w32->menubar_widget uninitialized?
@ 2010-06-13 18:01 Lennart Borgman
  2010-06-13 18:32 ` Lennart Borgman
  0 siblings, 1 reply; 24+ messages in thread
From: Lennart Borgman @ 2010-06-13 18:01 UTC (permalink / raw)
  To: 6414

I noticed some system call errors in free_frame_menu_bar so I tried to
nail it down:

void
free_frame_menubar (f)
     FRAME_PTR f;
{
  BLOCK_INPUT;

  {
    HMENU old = GetMenu (FRAME_W32_WINDOW (f));
    DebPrint (("free_frame_menubar.GetMenu.old=%d, f=%d, menubar_widget=%d",
               old, (FRAME_W32_WINDOW (f)),
f->output_data.w32->menubar_widget ));
    if (old)
      {
        if (!SetMenu (FRAME_W32_WINDOW (f), NULL))
          W32ASSERT (0, "free_frame_menubar.SetMenu");
        f->output_data.w32->menubar_widget = NULL;
        if (!DestroyMenu (old))
          W32ASSERT (0, "free_frame_menubar.DestroyMenu");
      }
  }

  UNBLOCK_INPUT;
}

This gave me the output below which seems to indicate that
menubar_widget is uninitialized:

  warning: free_frame_menubar.GetMenu.old=0, f=3146106, menubar_widget=329385

Where should it be initialized?





^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2011-09-21 21:07 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-13 18:01 bug#6414: f->output_data.w32->menubar_widget uninitialized? Lennart Borgman
2010-06-13 18:32 ` Lennart Borgman
2010-06-13 18:47   ` Lennart Borgman
2011-07-03 18:54     ` Juanma Barranquero
2011-07-03 22:19       ` Lennart Borgman
2011-07-03 22:30         ` Juanma Barranquero
2011-07-03 22:37           ` Lennart Borgman
2011-07-03 22:48             ` Juanma Barranquero
2011-07-03 23:11               ` Lennart Borgman
2011-07-03 23:21                 ` Juanma Barranquero
2011-07-03 23:42                   ` Lennart Borgman
2011-07-04  0:34                     ` Juanma Barranquero
2011-07-04  1:08                       ` Lennart Borgman
2011-07-04  1:21                         ` Juanma Barranquero
2011-07-04  1:44                           ` Lennart Borgman
2011-07-04  2:13                             ` Juanma Barranquero
2011-07-04  2:18                               ` Lennart Borgman
2011-07-04  2:35                                 ` Juanma Barranquero
2011-09-21 20:32                                   ` Lars Magne Ingebrigtsen
2011-09-21 20:40                                     ` Lennart Borgman
2011-09-21 20:44                                       ` Juanma Barranquero
2011-09-21 20:46                                         ` Lennart Borgman
2011-09-21 20:59                                           ` Lars Magne Ingebrigtsen
2011-09-21 21:07                                             ` Lennart Borgman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).