From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Peter 'Luna' Runestig" Newsgroups: gmane.emacs.bugs Subject: emacs-cvs built on Windows XP crashes on Windows 2000 Date: Wed, 4 Sep 2002 13:25:38 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <001301c25405$cc50eb20$64110b0a@datavis.se> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1031138734 17650 127.0.0.1 (4 Sep 2002 11:25:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 11:25:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mYHs-0004aY-00 for ; Wed, 04 Sep 2002 13:25:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mYJU-0001Ah-00; Wed, 04 Sep 2002 07:27:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17mYJ8-00018W-00 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2002 07:26:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17mYJ5-00018K-00 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2002 07:26:49 -0400 Original-Received: from arthur.runestig.com ([62.108.199.166]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mYJ5-00016q-00 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2002 07:26:47 -0400 Original-Received: from bollr2 (fw.kldata.cc [62.108.199.163]) by arthur.runestig.com (8.12.1/8.12.1) with SMTP id g84BQcRH003795 for ; Wed, 4 Sep 2002 13:26:46 +0200 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3409 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3409 Hi all, If I build emacs from cvs (20020829) on Windows XP (using VC++ 6), the binary doesn't work on another system, running Windows 2000. This is not the case for emacs 21.2, that works fine. It took me some time to figure out why: For some reason, a few Windows API functions are loaded at runtime, using GetModuleHandle()/GetProcAddress(). In 21.2, this was done "locally"; each time one of those function was needed, it's entry point in the shared library was queried and then used. In the latest code, the entry point are queried only when the global variable "initialized" == 0, and then stored in global variables. This only happens once, at build time, when the globals are actually saved in the binary (if I understand it correctly). But one can hardly expect the entry points for functions in various shared libraries to be the same across systems, or ever system upgrades (which are constanty needed when running a Microsoft OS). So when I run emacs, built on XP, on Windows 2000, it tries co call functions at totally bogus entry points, and is sure to break. Cheers, - Peter ---------------------------------------------------------------- Peter 'Luna' Runestig (fd. Altberg), Sweden PGP Key ID: 0xD07BBE13 Fingerprint: 7B5C 1F48 2997 C061 DE4B 42EA CB99 A35C D07B BE13 AOL Instant Messenger Screenname: PRunestig