Error Message: There Are No Spare Stack Pages

Last reviewed: January 16, 1998
Article ID: Q149083
The information in this article applies to:
  • Microsoft Windows 95

SYMPTOMS

When you are running Windows 95, you may receive the following error message:

   There are no spare stack pages. It may be necessary to increase
   the setting of 'MinSPs' in System.ini to prevent possible stack
   faults. There are currently <nnn> SPs allocated.

CAUSE

This error can occur when Windows 95 encounters an internal overflow of the stacks used by 32-bit Windows device drivers. Please note that this is not related to the "Stacks=" line in the Config.sys file, which is used for 16-bit MS-DOS device drivers.

Stack overflow conditions are indicative of errors in the device driver. Device drivers are allocated 4 kilobytes (one page) of space to be used as a stack. If the device driver uses more than 4 kilobytes of memory, a stack overflow condition occurs.

Windows 95 sets aside a number of extra memory pages (spare stack pages) to be used temporarily to prevent a system "crash" due to a stack overflow condition. When the stack overflow condition has passed, Windows 95 reclaims the temporary page. The default number of spare stack pages is 2.

If Windows 95 detects that it has run out of spare stack pages, the warning message stated above is displayed. Windows 95 continues to operate normally unless a device driver encounters a stack overflow condition when there are no free spare stack pages.

RESOLUTION

To resolve this situation, add the following line to the [386Enh] section of the System.ini file and then restart your computer:

   MinSPs=4

If the problem persists, increase the number of spare stack pages.

NOTE: Each spare stack page requires 4 kilobytes of memory.


Additional query words: 95 minisps
Keywords : win95 kbenv kberrmsg
Version : 95
Platform : WINDOWS


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.

Last reviewed: January 16, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.