ID Number: Q67844
3.00
WINDOWS
buglist3.00 fixlist3.10
Problem ID: PRWIN9107009
SYMPTOMS
An application running in real mode under the debugging version of
Windows 3.0 may encounter a FatalExit (RIP) 0x0200
"Leave_eems_stack error."
CAUSE
Windows may be unloading a dynamic-link library (DLL), and the
Windows exit procedure (WEP) in the DLL does not have the
RESIDENTNAME attribute.
RESOLUTION
Microsoft has confirmed this to be a problem in Windows version
3.0. To avoid this problem, make sure that the module definition
(DEF) file for each DLL in the application contains lines similar
to the following:
EXPORTS
WEP @1 RESIDENTNAME
For more information on WEPs and other considerations for building
DLLs in Windows 3.0, please query on the following words in the
Microsoft Knowledge Base:
WEP and windows and sdk
Because Windows 3.1 does not support real mode, this problem does
not occur under Windows 3.1.
Additional reference words: 3.00