Discussion Locked

Stack overflow error

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I receive this error in WIN98. "Terminating thread due to a stack overflow problem. A vxd, possibly recently installed, has consumed too much stack space. Increase the setting of Minsps in System.ini or remove recently installed VxDs. There are currently 4 SPS allocated."

Anyone can help?

thanks and regards,

9 replies

by thechas

I'll start with a left field question.

How much RAM is installed?

If more than 511MB, you may be experiencing the W9X large memory bug.
There is a bug in the W9X code that can cause Windows to think you are out of memory even though most of the RAM is free.

Other possible causes:

Memory is failing, or recently added memory is not fully compatible with existing memory.

Corrupt .vxd files.
You can try removing and then re-installing your hardware.
I often end up deleting the vxdfiles in C:\Windows\System32 and re-installing Windows.

Chas

by saihib

Just increase the number of stacks until the error disappears. Make sure you do it in increments of 4.

by ann777

Cause of the error message:
======
This error can occur when Windows 98 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 98 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 haspassed, Windows 98 reclaims the temporary page.

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

...more...

by ann777

Resolutions: -
Review spare stack pages used by 32-bit Windows device drivers.
=============
Go to start-run, type "sysedit" without the quotation mark and OK to open the System Configuration Editor. Select the system.ini window.

Go to the section and add the following line to the [386Enh] section of the System.ini file.

[386Enh]
MinSPs=12

Save the system.ini. Exit the System Configuration Editor and restart the computer.

If the problem persists, increase the number of spare stack pages in increments
of 4 (for example 12, 16, 32, 64).
NOTE: Each spare stack page requires 4 kilobytes of memory.
There should never be an odd number. It should be in increments of "4" as noted!!!
Be aware that, increase the number too high may cause resources lower in the RAM area below 1Mb and have adverse effect in system performance.

Windows98 in default value is MinSPs=8 (which is hidden in the system).
If you've got error from stack pages of MinSPs, you should increase from 8 to 12 and test onwards for your system. The adding of such a line in system.ini will override the default value.

by ann777

Also make sure your CONFIG.SYS does not have comments like this within:

STACKS=64,512 ;(this is the maximum allowed)
FILES=60
BUFFERS=40

If CONFIG.SYS has the above, then REM (remark) out the lines and reboot, then use SYSTEM.INI as aboveto correct the problem.

CONFIG.SYS stacks,files and buffers are used for 16-bit DOS apps. SYSTEM.INI should be used for 32-bit apps. See the below article for more info for 16 bit apps.

http://support.microsoft.com/default.aspx?scid=KB;en-us;q145799

This discussion is closed to new replies.