PRB: #File Error# During Dump of Heap ObjectsLast reviewed: July 25, 1997Article ID: Q163370 |
The information in this article applies to:
SYMPTOMSWhen you call _CrtMemDumpAllObjectsSince() to dump the objects on the CRT heap, you may see #File Error# in the place of a file name. Following is an example of a dump where both a file name and the #File Error# occurs.
Dumping objects -> d1.cpp(11) : {27} normal block at 0x007609A0, 222 bytes long. Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD #File Error#(9) : {26} normal block at 0x00760900, 111 bytes long. Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD Object dump complete. CAUSEThe CRT adds a header to the beginning of every memory block that is allocated. If you have defined the symbol _CRTDBG_MAP_ALLOC before including crtdbg.h, this memory block header contains a pointer to the name of the file where the CRT function that allocated the memory block was called from. #File Error# is emitted instead of the file name when the executing process does not have read access to the memory reference by this pointer. There are two probable causes for not having read access to the memory reference by this pointer:
STATUSThis behavior is by design.
Steps to Reproduce Behavior
Keywords : CRTIss kbcode Version : 4.0 4.1 4.2 5.0 Platform : NT WINDOWS Issue type : kbprb Solution Type : kbfix |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |