From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: NTEmacs 21.2.50 crashes Date: Sat, 23 Feb 2002 09:18:23 -0800 (PST) Organization: Sony Electronics Inc. Message-ID: <20020223.091823.01367095.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: quimby2.netfonds.no 1014485003 31996 195.204.10.66 (23 Feb 2002 17:23:23 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 23 Feb 2002 17:23:23 GMT Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16eftK-0008Jy-00 for ; Sat, 23 Feb 2002 18:23:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16efrF-0000wy-00; Sat, 23 Feb 2002 12:21:13 -0500 Original-Received: from mail6.fw-sj.sony.com ([160.33.82.73]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16efoc-0000eD-00 for ; Sat, 23 Feb 2002 12:18:30 -0500 Original-Received: from mail1.bc.in.sel.sony.com (mail1.bc.in.sel.sony.com [43.144.65.11]) by mail6.fw-sj.sony.com (8.8.8/8.8.8) with ESMTP id RAA27628 for ; Sat, 23 Feb 2002 17:18:29 GMT Original-Received: by mail1.bc.in.sel.sony.com id RAA03458; Sat, 23 Feb 2002 17:18:26 GMT Original-To: emacs-devel@gnu.org X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew version 3.0.54 on Emacs 21.2.50.1 / Mule 5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1459 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1459 2002-02-22 Jason Rumney * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize. (menu_free_timer): New variable. (MENU_FREE_ID, MENU_FREE_DELAY): New constants. (w32_wnd_proc) : Handle menu_free_timer. : Delay before freeing menu. Do nothing if a menu command is in progress. : Set the menu_command_in_progress flag. Kill any menu_free_timer that is running. In the function w32_wnd_proc, WM_TIMER case seems to be missing an initialization of f. It crashes by referring to uninitialized f. *** w32fns.c.orig Fri Feb 22 21:22:59 2002 --- w32fns.c Sat Feb 23 09:11:30 2002 *************** *** 4779,4785 **** { KillTimer (hwnd, menu_free_timer); menu_free_timer = 0; ! if (!f->output_data.w32->menu_command_in_progress) { /* Free memory used by owner-drawn and help-echo strings. */ w32_free_menu_strings (hwnd); --- 4779,4786 ---- { KillTimer (hwnd, menu_free_timer); menu_free_timer = 0; ! f = x_window_to_frame (dpyinfo, hwnd); ! if (f && !f->output_data.w32->menu_command_in_progress) { /* Free memory used by owner-drawn and help-echo strings. */ w32_free_menu_strings (hwnd); -Tak _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel