3.831 bytes

Service Hints & Tips

Document ID: DJON-3G6TE8

Aptiva - Using the STACKS command

Applicable to: World-Wide

A stack is a specified number of frames, or segments of memory, that are reserved for handling hardware interrupts generated by some applications. The number of frames, as well as the size of each frame, can be specified within by the STACKS command.

NOTE: Each frame you allocate will increase the resident portion of DOS, reducing the amount of conventional memory available.

The STACKS command cannot be used at the DOS command prompt. Instead, it can be included in the CONFIG.SYS file. If STACKS are not specified in the CONFIG.SYS file, the system will use the system default.

The syntax of the command is as follows:

STACKS=m,n

m = specifies the number of frames in the stack. The range of allowable values is 8 through 64.

n = specifies the size (in bytes) of each stack frame. The range of allowable values is 32 through 512.

NOTE: If you do not specify a STACKS= statement in your CONFIG.SYS file, the default values are used. Depending on the machine type the default values are either 9,128 or 0,0.

Remember, increasing stack resources reduces your available memory. You should increase the number of stack frames FIRST (before increasing the size of the frame) when trying to eliminate an error condition. Each time a hardware interrupt occurs, DOS uses one frame from the stack pool. After the interrupt has been processed, DOS will return the stack frame to the pool.

EMM386 Error #12 is a Stack exception error. This means that there may not be enough stacks for the running application. Usually this error can be resolved by increasing the amount of stack frames. The STACKS command is typically set to: STACKS=9,256. If you are experiencing EMM386 Error #12, try increasing the amount of stacks to: STACKS=18,256.

Search Keywords

Hint Category

DOS/Windows 3.x

Date Created

15-04-97

Last Updated

09-03-99

Revision Date

09-03-2000

Brand

IBM Aptiva

Product Family

Aptiva, PS/1

Machine Type

2134, 2136, 2137, 2138, 2140, 2142, 2144, 2159, 2161, 2162, 2168, 2176, 2011, 2121, 2123, 2133, 2155

Model

all

TypeModel

Retain Tip (if applicable)

Reverse Doclinks
and Admin Purposes