INF: DB-Library Reentrancy and User-Defined Error HandlersLast reviewed: April 3, 1997Article ID: Q105749 |
The information in this article applies to:
- Microsoft SQL Server Programmer's Toolkit, version 4.2
SUMMARYPage 45 of the Microsoft SQL Server Programmer's Reference for C states:
Protect error and message handling functions installed by dberrhandle and dbmsghandle. These are global to the entire DB-Library application, and should therefore be protected with a separate synchronization object to avoid colliding with the protection around certain DB-Library calls. MORE INFORMATIONIt is only necessary to serialize access within the error and message handlers if non-thread local data or resources are accessed during error or message handling. If the error and message handlers are written to be fully reentrant, there is no need to protect these functions with synchronization objects.
|
Additional query words: 4.20 DB-Library dblib multiple re-entrancy
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |