From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Fix for Emacs Crash - revisited Date: 13 Nov 2002 17:16:00 +0000 Sender: emacs-devel-admin@gnu.org Message-ID: References: <000001c28895$897a8d50$6501a8c0@GODDESS> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037300021 14993 80.91.224.249 (14 Nov 2002 18:53:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2002 18:53:41 +0000 (UTC) Cc: "Emacs-Devel (E-mail)" Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18CP6w-0003qx-00 for ; Thu, 14 Nov 2002 19:53:06 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18CPJS-0005HG-00 for ; Thu, 14 Nov 2002 20:06:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18CP7B-0003uJ-00; Thu, 14 Nov 2002 13:53:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18CN6k-0002wm-00 for emacs-devel@gnu.org; Thu, 14 Nov 2002 11:44:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18CN6h-0002vh-00 for emacs-devel@gnu.org; Thu, 14 Nov 2002 11:44:46 -0500 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18CLx1-0001C2-00 for emacs-devel@gnu.org; Thu, 14 Nov 2002 10:30:40 -0500 Original-Received: from rhenium.btinternet.com ([194.73.73.93] helo=rhenium) by gnudist.gnu.org with esmtp (Exim 4.10) id 18CHsg-0000Yo-00 for emacs-devel@gnu.org; Thu, 14 Nov 2002 06:09:54 -0500 Original-Received: from host62-7-59-204.in-addr.btopenworld.com ([62.7.59.204] helo=nyaumo.btinternet.com) by rhenium with esmtp (Exim 3.22 #15) id 18CHn7-0002co-00; Thu, 14 Nov 2002 11:04:10 +0000 Original-Received: from nyaumo.btinternet.com (nyaumo.btinternet.com [127.0.0.1]) by nyaumo.btinternet.com (Postfix) with ESMTP id 66CA14B3C8; Wed, 13 Nov 2002 17:16:00 +0000 (GMT) Original-To: In-Reply-To: <000001c28895$897a8d50$6501a8c0@GODDESS> Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9411 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9411 "Ben Key" writes: > I found that even though track_mouse_event_fn was being > initialized in syms_of_w32fns which is called from main, I think you will find that syms_of_w32fns and syms_of_w32menu are only called when Emacs is dumped, and that is why looking up the addresses of dynamic library functions from them causes problems when the binary is run on a different version of Windows. But rather than moving the initialization to where a system message is processed, perhaps there is another suitable w32 specific initialization function that is called every time Emacs runs. I think there is one in w32term.c at least, although that would involve making the function pointers non-static.