Tech Tip 46841 suggested using the Tracing feature of the ODBC Data Source Administrator in order to debug ODBC applications. This feature produces a log file that contains a log of all ODBC calls. As part of this log you may notice parameters labeled as "BADMEM". Here is an example:
| 4D 9a4-9a8 EXIT SQLSetStmtAttr with return code 0 (SQL_SUCCESS) |
SQLINTEGER 7 <SQL_ATTR_CONCURRENCY>
SQLPOINTER 0x00000003 (BADMEM)
It is important to understand that these are not errors. In most cases these are null pointers and, assuming that parameter is optional to the ODBC function in question, are not cause for alarm.