The information in this article applies to:
SYMPTOMSDB-Library (DB-Lib) programs compiled with /Zp (pack structure members) can produce General Protection Faults (GP-Faults) and unpredictable results. The problem seems to be limited to DB-Lib macros such as dbcurrow(), dbfirstrow(), and dbrowtype(). CAUSEDB-Lib has been compiled with default structure alignment. If the user program is compiled with an incompatible pack option, DB-Lib macros will be generated with incorrect offsets, resulting in unpredictable results. WORKAROUNDIf the user program must be compiled with /Zp, the problem can be circumvented by putting pragma statements around the include for "sqldb" to force word alignment offsets to be generated when DB-Lib macros reference that structure. Additional query words: dblib
Keywords : kbprg SSrvDB_Lib |
Last Reviewed: March 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |