KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q39045: Error R6006 Bad Format on exec

Article: Q39045
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: 21-DEC-1988

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

R6006       bad format on exec

            The file to be executed by one of the exec functions was
            not in the correct format for an executable file.

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

Errors R6005 through R6007 occur when a child process spawned by one
of the exec library routines fails, and DOS could not return control
to the parent process. This error indicates that not enough memory
remained to load the program being spawned.

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.