General discussion

Locked

STACKS setting in Config.sys

By george ·
Hi all.
I run Win98SE on a celeron 550MHz.The problem is during booting,it stops and shows the message :"Windows protection error.You need to restart your computer".
Then it doesn't do anything,until i press twice any button,and as soon as i pressa button i get another message :"An internal stack overflow has caused this session to be halted .Change the STACKS settings in your Config.sys and try again"
I don't need to say that it does not start,it just repeats the same as above,except if i press CTRL during boot and from the menu i choose "command prompt only".Then i use SCANREG/RESTORE and afte that the PC starts normally.Until i restart it again,or i close down and try to restart.What should i do?HELP ME PLEASE!!!!I have exams in 8 days and without PC no revision is possible!

This conversation is currently closed to new comments.

12 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

STACKS setting in Config.sys

by Ann777 In reply to STACKS setting in Config. ...

Can you edit CONFIG.SYS from the dos prompt and put a REM in fromt of the line STACKS... such that it looks like REM STACKS (etc.)?
Then try rebooting again.

If the above does not help then, you need to provide us with a line-by-line copy of your config.sys file. At the DOS prompt type:

copy config.sys > prn

the above will print the currect configuration of this file to the printer... then type it into this question as a comment and we should be able to correct your stacks setting. Probably the syntax or the numbers are wrong.

Collapse -

STACKS setting in Config.sys

by george In reply to STACKS setting in Config. ...

The question was auto-closed by TechRepublic

Collapse -

STACKS setting in Config.sys

by Curacao_Dejavu In reply to STACKS setting in Config. ...

start the pc,
as as soon you see starting windows hit the f8 key.(or press the ctrl key)
from the menu chosse command prompt only.
when you are see :c:\"
type in dir con*.sys, to see if you have the file

type in "cd windows\command"
then type in "edit c:\config.sys"
on look for a line starting with "stacks" or modify the stacks line to "stacks=9,256"
or 9,512.

in case you didn't have the file just create it.

save the file and reboot.

regards,

Leopold

Collapse -

STACKS setting in Config.sys

by Curacao_Dejavu In reply to STACKS setting in Config. ...

MS KB Article I Q145799

The Config.sys startup file may not be properly configured for the Windows installation. Use the following values:
STACKS=64,512 this is the maximum allowed)
FILES=60
BUFFERS=40
If you are using the dual-boot capabilities in Windows, the Config.sys and Autoexec.bat files may not contain the correct configuration to run Windows. When you are dual-booting between Windows 3.x and Windows, these files may not have been renamed back to Config.dos and Autoexec.dos.

Examine the Config.sys file to determine if files such as Himem.sys or Emm386.exe are loaded from a folder other than the Windows folder. If so, boot Windows by using the Safe Mode Command Prompt Only option. Rename the Config.sys file to Config.dos and the Autoexec.bat file to Autoexec.dos, and then restart your computer.


Some TSRs may be interfering with Windows. Disable any non-boot device drivers in the Config.sys and Autoexec.bat files. If you install from Windows 3.x and you receive a stack overflow error message, check the Win.ini and System.ini files for non-Windows-based programs or drivers that are loading.


There may be an incompatible hardware configuration. Check the port and IRQ settings of the network adapter, sound card, and modem. Make sure that there are no COM2/COM4 or COM1/COM3 conflicts and that no devices are sharing IRQs. Disable or remove conflicting devices.


The computer may need a BIOS upgrade. Check the BIOS version and contact the manufacturer of your computer for information about a BIOS upgrade.


For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
Q82318 Stack Overflow Can Cause Windows to Hang


check the ms kb q82318 also.

Collapse -

STACKS setting in Config.sys

by george In reply to STACKS setting in Config. ...

The question was auto-closed by TechRepublic

Collapse -

STACKS setting in Config.sys

by tjc In reply to STACKS setting in Config. ...

reboot to msdos mode like stated in the other replys and then do the following

cd..
edit config.sys

find the line that has stacks in it

put rem in front of the stacks command

save the file by doing a ALT+F then choose save then do a alt+f and then exit.

reboot the computer.

as long as you dont' have any dos or windows 3.1 programs on your computer should should be all set.

Collapse -

STACKS setting in Config.sys

by george In reply to STACKS setting in Config. ...

The question was auto-closed by TechRepublic

Collapse -

STACKS setting in Config.sys

by csmith In reply to STACKS setting in Config. ...

If you have exams in 8 days, I would not shut down for 8 days, and fool with the PC after exams. (Is your PC stable enough to do that?)
Electricity is not that expensive, an PC don't draw that much, especially if the monitor is turned off.
Now, when you have time to work on the PC.
The stacks are used to service the Hardware Interrupts. (IRQs) So, each IDE channel requires one, the Floppy requires one, the Sound requires at least one, the Network Card requires one, the mouse requires one, the Video Card usually reqires one, the Printer Port (LPT) reqires one , etc.
Thus the default in Windows is 9,256 , if you have no entry in CONFIG.SYS.
The 9 is the number of stacks, and the 256 is the size.
To fight stack overflow, the size, (the second number) is usually more important than the number of stacks. Unless you have a large number of cards installed. (Think extra SCSI etc.)
The limit on the size is 512.
Try the 9,512 setting for stacks first, then increase the first number. (Remember a standard PC has only 16 IRQs, so above 16 you are just wasting memory.
If 16,512 does not work, it is time to start looking for a virus, as the next step.
Overflows are a way of attacking Windows.
Regards, Chris

Collapse -

STACKS setting in Config.sys

by george In reply to STACKS setting in Config. ...

The question was auto-closed by TechRepublic

Collapse -

STACKS setting in Config.sys

by Pocono In reply to STACKS setting in Config. ...

Personally, I just run:

Stacks=9,256

Back to Desktop Forum
12 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums