Array Bounds Errors in Purify
From: James Tucker (jwtucker007_at_hotmail.com)
Date: 02/22/05
- Next message: April: "TEST"
- Previous message: Frank Hickman [MVP]: "Re: Can someone help with this SQL statement"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Feb 2005 09:31:15 -0800
When I'm running my application through Purify I keep
getting "Array Bounds Write Errors". For example, when I
execute the following code:
CRecordset recSet(m_pDatabase);
recSet.Open(CRecorset::forwardOnly, _T("SELECT hos_title
from hosmas"));
Purify reports the following:
ABW: Array bounds write in MultiByteToWideChar
Writing 120 bytes to 0x022850e0 (56 bytes at 0x02285120
illegal)
CRecordset::PrepareAndExecute(void) [dbcore.cpp:2421]
else
{
AFX_ODBC_CALL(::SQLPrepare(m_hstmt, (UCHAR*)lpszWSQL,
SQL_NTS));
}
This happens on EVERY database transaction that I do. My
configuration is Windows XP SP1 + MDAC 2.8. I can
reproduce the same issue running against Oracle (Oracle
8.1.7.7 ODBC Driver) or MS SQL Server.
Any help would be greatly appreciated as this is driving
me nuts.
Thanks,
James
- Next message: April: "TEST"
- Previous message: Frank Hickman [MVP]: "Re: Can someone help with this SQL statement"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|