Q110943: WINSOCK API Init. Error: Not Enough DOS memory
Article: Q110943
Product(s): Microsoft LAN Manager
Version(s):
Operating System(s):
Keyword(s):
Last Modified: 30-JUL-2001
SYMPTOMS
========
When starting WinSock applications after other applications have started you get
the following error:
WINSOCK API Initialization Error: Not enough DOS memory to allocate DOS
buffers for all sockets.
CAUSE
=====
Windows uses a bottom-up memory allocation algorithm. If applications started
before WinSock applications exhaust all lower memory, WINSOCK.DLL cannot
initialize communication buffers in lower memory to talk to the TCP/IP protocol
stack, resulting in the above error message.
WORKAROUND
==========
Starting at least one WinSock application before any other applications allows
WINSOCK.DLL to reserve the lower memory buffers needed for communication with
the TCP/IP protocol stack and to retain them during subsequent memory
allocations.
Additional query words: 2.20 2.2 tcpip sockets
======================================================================
Keywords :
=============================================================================
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.