Microsoft KB Archive/108684

FIX: Memory Leak When Converting String to DBDATETIME

PSS ID Number: Q108684 Article last modified on 01-24-1995

4.20.50 | 4.20.50 | 4.20.50

MS-DOS | WINDOWS | OS/2

BUG# 9703 (4.20.50)

= SYMPTOMS =

While executing multiple calls to dbconvert that convert a character string to a DBDATETIME value, an error number 10000 message occurs:

Unable to allocate sufficient memory

= CAUSE =

Conversion of character string values to DBDATETIME variables can result in gradual memory leakage within DB-Library. DB-Library memory in a Windows or medium-model MS-DOS application will be exhausted after approximately 3500 calls to dbconvert. DB-Library applications compiled for Windows NT, large-model MS-DOS and OS/2 will be less affected as the maximum heap size is much larger in these environments.

= WORKAROUND =

This behavior occurs with DB-Library version 4.20.32 and later. The problem will not occur using DB-Library 4.20.00 and 4.20.21.

= STATUS =

Microsoft has confirmed this to be a problem in DB-Library version 4.20.50. This problem was corrected in DB-Library version 4.21.00. For more information, contact your primary support provider.

Additional reference words: 4.20.50 db-lib dblib date time KBCategory: kbprg KBSubCategory: SSrvDB_Lib SSrvProg

=
================================================================

Copyright Microsoft Corporation 1995.