Microsoft KB Archive/69820

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:58, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

INF: Stack Size for DB-LIBRARY Applications

PSS ID Number: Q69820 Article last modified on 02-03-1994

1.10 1.11 4.20 | 1.10 1.11 4.20 | 1.10 1.11 4.20 MS-DOS | WINDOWS | OS/2

The information in this article applies to:
- Microsoft SQL Server Programmer’s Toolkit

Microsoft recommends a stack size of at least 8K for compiling and linking most DB-LIBRARY (db-lib) application programs in MS-DOS, Windows, and OS/2. This will leave enough room in the stack for any db-lib function calls. However, for some (simple) db-lib programs, a smaller stack space may suffice. Recommended minimum stack sizes are 3K for MS-DOS, 5K for Windows, and 4K for OS/2 programs. Again, however, 8K for each is optimal. Please note that stack size is usually specified when the program is linked. For MS-DOS and OS/2, this is done on the LINK line using, /ST:xxxx where xxxx is the size of the stack in bytes. For Windows, this is done in the .DEF file using the line, STACKSIZE xxxx where xxxx is the size of the stack in bytes. Also note that the default stack size for MS-DOS and OS/2 is 2048, and that Windows will automatically adjust any stack size less than 5K to 5K.

Additional reference words: dblib 1.10 1.11 4.20

Copyright Microsoft Corporation 1994.