Microsoft KB Archive/105749
INF: DB-Library Reentrancy and User-Defined Error Handlers
The information in this article applies to:
- Microsoft SQL Server Programmer's Toolkit, version 4.2
Page 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.
It 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: DB-Library dblib multiple re-entrancy dblib
Keywords : kbprogramming
Issue type :
Technology : kbSQLServSearch kbAudDeveloper kbSQLServPTK420
Last Reviewed: March 18, 1999