From: "Peter 'Luna' Runestig" <peter@runestig.com>
Subject: emacs-cvs built on Windows XP crashes on Windows 2000
Date: Wed, 4 Sep 2002 13:25:38 +0200 [thread overview]
Message-ID: <001301c25405$cc50eb20$64110b0a@datavis.se> (raw)
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
next reply other threads:[~2002-09-04 11:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-04 11:25 Peter 'Luna' Runestig [this message]
2002-09-04 13:05 ` emacs-cvs built on Windows XP crashes on Windows 2000 Peter 'Luna' Runestig
2002-11-22 11:48 ` Peter 'Luna' Runestig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001301c25405$cc50eb20$64110b0a@datavis.se' \
--to=peter@runestig.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.