The information in this article applies to:
SYMPTOMS
A user-defined dynamic-link library (DLL) contains all DB-Library (DB-Lib)
calls and also a global dbprocess() function. The first call to a DLL
function opens a dbprocess() function. All subsequent calls to the DLL
attempt to use the same dbprocess() function to communicate with SQL
Server.
CAUSETwo processes cannot simultaneously share the same dbprocess() function because the DB-Library's data segment is reserved. WORKAROUND
There are at least three ways to achieve the same functionality:
MORE INFORMATION
You cannot use a single dbprocess() function within a DLL for multiple
.EXE files. DB-Library's data segment is reserved. This means that each
process attached to PDBLIB.DLL (or W3DBLIB/WDBLIB) has its own private
instance of a data segment. Therefore, one process never sees or
accesses a dbprocess() function opened by a different process.
Additional query words: dblib
Keywords : kbprg SSrvDB_Lib SSrvProg |
Last Reviewed: March 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |