The information in this article applies to:
SYMPTOMSUnder the Checked build of Windows NT or a diagnostic utility you receive an error similar to this one: The Checked build of Windows NT causes a Hard-Coded breakpoint to occur, which generates a message similar to this one:
CAUSE
The CSharedFile class maintains a global memory block. As soon as an
HGLOBAL is allocated by a CSharedFile object (or specified in a call to
SetHandle), it calls GlobalLock to lock this memory block. RESOLUTIONAfter calling CSharedFile::Detach(), you can unlock the global memory block by making a call yourself to GlobalUnlock(). Because this workaround is dependent on the implementation of CSharedFile(), you should be sure to use conditional compilation for this block of code as demonstrated here:
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. Additional query words:
Keywords : kbnokeyword kbMFC kbVC kbVC200bug kbVC210bug kbVC220bug kbVC400bug kbVC410bug kbVC420bug kbVC500bug kbVC600bug |
Last Reviewed: July 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |