FIX: You receive a "DAMAGE: after Normal block (#204)" debug error message when you convert a MFC DAO application to use DAO 3.6 in Visual C++ (235507)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q235507 SYMPTOMS When you convert a Microsoft Foundation Classes (MFC) Data
Access Objects (DAO) application to use DAO 3.6, the application can produce a
debug error. The exact error message is as follows:
DAMAGE: after Normal block (#204) at <hex address>
CAUSE DAO 3.6 incorrectly overwrites the character buffer
supplied to it by MFC when it fetches text data. It first copies the Unicode
string into the buffer that is twice as long as the length of the buffer, and
then converts the string to an Ansi string.
RESOLUTION With the exception of one case where the error still
occurs, this problem has been fixed in DAO 3.60 version 3.60.3714.5. To obtain
the updated DAO 3.60 dll, install the latest Microsoft Jet 4.0 service
pack 4.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
239114
How to obtain the latest service pack for the Microsoft Jet 4.0 Database Engine
Even after you apply this fix, the problem may
still occur when the table you are accessing through DAO contains a text field
that is defined to be only one character in length. If the field definition
allows more than one character in the field, the problem should be resolved by
applying the fix described above. If your table must contain a
single-character text field, you need to use the code workaround in the More
Information section.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
This problem was corrected in Microsoft Jet
4.0 Service Pack 4, with the one exception noted in the Resolution section of
this article.
REFERENCES239114 How to obtain the latest service pack for the Microsoft Jet 4.0 Database Engine
236991 Unrecognized database format error with Access 2000 database
236056 FIX: DAO 3.6 overruns buffers in GetRowsEx method
Modification Type: | Minor | Last Reviewed: | 9/23/2005 |
---|
Keywords: | kbHotfixServer kbQFE kberrmsg kbQFE kbBug kbDatabase kbfix KB235507 kbAudDeveloper |
---|
|