BUG: Read-Only .DEF File Can Cause General Protection FaultLast reviewed: July 22, 1997Article ID: Q116317 |
|
1.00 1.50
WINDOWS
kbtool kbbuglist
The information in this article applies to:
SYMPTOMSWhen you use the Microsoft Visual Workbench version 1.0 or 1.5 to load a read-only .DEF file that has the end of file marker (<EOF>) just following the last character on the last line, an application error may occur. The following error message may be generated:
Application Error
MSVC caused a General Protection Fault in module
MSVC.EXE at 0002:004F6
RESOLUTIONThe workaround for this is either to move the <EOF> marker to a new line at the end of the file or to remove the read-only attribute from the file.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. This is not a problem in Visual C++, 32-bit Edition.
MORE INFORMATIONThe following sample .DEF file shows where the <EOF> marker causes the problem, but the problem can occur with any project's .DEF file. To reproduce this problem, use the following steps:
Sample .DEF File
LIBRARY Sample
DESCRIPTION 'Sample'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA MOVEABLE SINGLE
HEAPSIZE 1024
EXPORTS
WEP
SAMPLE
;^- If <EOF> is here and READONLY may cause GPF in VWB
|
Additional reference words: 1.00 1.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |