PRB: Memory Leaks with Desktop Database Drivers (132493)
The information in this article applies to:
- Microsoft Open Database Connectivity 2.0
This article was previously published under Q132493
2.00
WINDOWS
kbinterop kbprb
SYMPTOMS
The 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 SQLFreeEnv
NOTE: 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.
WORKAROUND
Share ODBC connections as much as possible in the application.
Modification Type: | Major | Last Reviewed: | 6/12/2001 |
---|
Keywords: | KB132493 |
---|
|