bug-gnu-emacs
[Top][All Lists]
Advanced

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

emacs-cvs built on Windows XP crashes on Windows 2000


From: Peter 'Luna' Runestig
Subject: emacs-cvs built on Windows XP crashes on Windows 2000
Date: Wed, 4 Sep 2002 13:25:38 +0200

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 <peter@runestig.com>
PGP Key ID: 0xD07BBE13
Fingerprint: 7B5C 1F48 2997 C061 DE4B  42EA CB99 A35C D07B BE13
AOL Instant Messenger Screenname: PRunestig







reply via email to

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