Discussion Locked

Preventing Stack Overflow Errors

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
One of our systems gets stack overflow errors. Microsoft says to increase the value through config.sys. When opening config.sys, there is no mention of "stacks=". Where is the setting so that I can change it??

9 replies

by syscokid

If there is no "stacks=..." simply append it to the end of the config.sys file.

You may also need to edit the [386enh] section of your system.ini file. There should be a line that says "MinSPs=". The default is 2. You can inrease it in multiples of 2.

by dmiles

You will have to add it as the next line of text in the Config.sys using notepad add it STACKS=9,256
This sets 9 stack pieces,each has size of 256 bytes,you may want to start with 9 pieces,and if this is not large enough,increase the first number,do not go higher than 20

by raymond.caldwell

Do you happen to know whether a swap file was created for that PC?? Usually, the error message appears when a swap file was created that was too small. To check if there is one, you can right-click on MY COMPUTER and go to Properties and then go to the PERFORMANCE tab and click on VIRTUAL MEMORY and if there is a specified number there, then that my very well be the problem, you can either increase it (I don't recommend, though) or let WIndows control the memory settings (better off). Another way to see if you have a swap file is go go into the SYSTEM.INI and under {386Enh} there will be 2 entries there called MinPAGEFile = and MaxPAGEFile =. Good luck!!

Ray
Network +

by moethecrow

Hello,
I just fixed a laptop with this same problem yesterday. If you are accessing the config.sys from DOS (assuming you are using Windows 9.x)you need to type edit config.sys at the c:\ then type in the following STACKS=64,512 (this is the maximum allowed) FILES=60 BUFFERS=40 making sure each line is under one another. If you are going through windows go to start, run, type sysedit then edit the config.sys this way. You need to reboot after. Just curious are you getting an error referring toconfigmg also? If so you will need to access your BIOS and disable the L2 cache.

This discussion is closed to new replies.