PRB: Memory Leaks with Desktop Database DriversLast reviewed: September 9, 1996Article ID: Q132493 |
The information in this article applies to:
SYMPTOMSThe following sequence of calls lead to a 4K memory leak in Microsoft Desktop Database Drivers version 3.x, 12K to 20K memory leak in 32-bit Microsoft Desktop Database Drivers version 2.x, and a 64K memory leak when 16-bit Microsoft Desktop Database Drivers are used:
SQLAllocEnv, SQLAllocConnect, SQLConnect (or SQLDriverConnect), SQLDisconnect, SQLFreeConnect, and SQLFreeEnvNOTE: If you use an Access 3.x ODBC driver against an Access 2.x MDB file, the memory leak is between 12K and 20K. If you use the Access 3.x ODBC driver against an Access 7.x MDB file, the leak is 4K.
WORKAROUNDShare ODBC connections as much as possible in the application.
MORE INFORMATIONThe 32-bit Microsoft Desktop Database Drivers include Microsoft Access, FoxPro, dBASE, Paradox, Microsoft Excel, and text drivers. The 16-bit Microsoft Desktop Database Drivers include Microsoft Access, Foxpro, dBASE, Paradox, Btrieve, Microsoft Excel, and text drivers. All of the Desktop Database Drivers are implemented using the Microsoft Jet Database Engine. For 16-bit Desktop Database Drivers, ODBCJT16.DLL is the driver DLL file and MSAJT200.DLL is the 16-bit Jet Engine DLL file. Note that there is no memory leak in ODBCJT16.DLL during a connection or disconnection.
Steps to Check for 32-Bit ODBC Driver Memory LeaksTo determine memory leaks of the 32-bit ODBC driver, start the Process Viewer in the Windows NT Resource Kit. In addition, start the 32-bit ODBC Test application and to the following:
|
Additional reference words: 2.00.2317 sql 6.00 windows nt pviewer
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |