PRB: Cannot Use /Zp Compiler Option With DB-LibraryLast reviewed: April 25, 1997Article ID: Q37667 |
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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |