KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q39047: Error R6008 Not Enough Space for Arguments

Article: Q39047
Product(s): See article
Version(s): 5.00 5.10 | 5.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | s_quickc s_error | mspl13_c
Last Modified: 11-JAN-1990

The information below discusses the run-time library error message
R6008.

The following error is from "Run-Time Library Error Messages" in (1)
the "Microsoft C Optimizing Compiler User's Guide," Section E.4.1,
Page 283, and in (2) the "Microsoft QuickC Compiler Programmer's
Guide," Section D.3.2, Page 363:

R6008       not enough space for arguments

(1)         See explanation under error R6009.

(2)         (no description given)

These messages may be generated at run time when your program has
serious errors. Run-time error-message numbers range from R6000 to
R6999. A run-time error message takes the following general form:

   run-time error R6nnn
   - messagetext

The following is the description for R6009 in the "Microsoft C
Optimizing Compiler User's Guide":

   Errors R6008 and R6009 both occur at start-up if there is
   enough memory to load the program, but not enough room for
   the argv vector, the envp vector, or both. To avoid this
   problem, rewrite the _setargv or _setenvp routines (see
   Section 5.2.2, "Suppressing Command-Line Processing," for
   more information).

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.