The information in this article applies to:
SYMPTOMSThe sample program BELL.C, which is shipped with the Microsoft Macro Assembler (MASM) version 6.0, generates the following error when compiled and run:
CAUSE
The run-time error R6001 occurs because the error-checking routine
_nullcheck() is being invoked after the program has terminated to
determine whether the contents of the NULL segment have been changed.
Because this is a mixed C and assembly language program, the
_nullcheck() routine is expecting to see the Microsoft C run-time
library message in the NULL segment.
RESOLUTIONAs stated in the online help, the null pointer check can be suppressed by defining your own routine named _nullcheck() that does nothing. To prevent the above error, place the following _nullcheck() definition in the file BELL.C.
The /NOE link option must also be used to avoid multiple symbol
definitions. The call to _nullcheck() will be satisfied by your
definition of _nullcheck(), and the library version will not be
loaded.
STATUSMicrosoft has confirmed this to be a problem in MASM version 6.0. This problem was corrected in MASM version 6.0a. Additional query words: BELL.MAK buglist6.00 fixlist6.00a
Keywords : |
Last Reviewed: January 4, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |