KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q24910: Memory Not Freed by DOS 2.x for exec or spawn with P_OVERLAY

Article: Q24910
Product(s): See article
Version(s): 4.00 5.00 5.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | tar57672 | mspl13_c
Last Modified: 21-SEP-1988

Within DOS Versions 2.x only, recurrent use of an exec function or a
spawn function with P_OVERLAY eventually causes a return indicating
that there is no more available RAM memory.

This is a DOS Versions 2.x problem, whose exact nature is unknown.
Microsoft has traced the problem to the point where DOS corrupted
memory, and memory is not being freed back to DOS Versions 2.x.

If you encounter this problem, upgrade to DOS Versions 3.x, which
do not have this problem.

It appears that only the exec() family (or spawn() with P_OVERLAY
specified) is affected by this DOS problem. The spawn() family (except
when P_OVERLAY is specified) seems to work correctly.

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.