Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/171878

From BetaArchive Wiki
Knowledge Base


FIX: Cursor Library Memory Leak in Multithreaded Environment

Article ID: 171878

Article Last Modified on 3/3/2000



APPLIES TO

  • Microsoft Open Database Connectivity 2.5
  • Microsoft Open Database Connectivity 3.0
  • Microsoft Data Access Components 2.5



This article was previously published under Q171878

BUG #: 1251/4210 (odbcsdk)

SYMPTOMS

When the cursor library is loaded in a multithreaded application, a memory leak occurs.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Open Database Connectivity versions 2.5 and 3.0. This problem has been corrected in U.S. Service Pack 1 for Microsoft Open Database Connectivity, version 3.0. For more information, contact your primary support provider.

MORE INFORMATION

This problem is created when multiple threads establish connections specifying that the ODBC Cursor Library is to be used. For example, if each thread of a multithread application creates a connection using the SQLSetConnection(hdbc, SQL_ODBC_CURSORS, SQL_CUR_USE_ODBC) statement and subsequently executes it repeatedly, you can use the Process Viewer to observe a memory leak.


Additional query words: 6.50 6.5 sql sqlserver server multi thread threaded

Keywords: kbbug kbfix kbmdac250fix KB171878