BUG: Multiple Calls to bcp_colfmt Fail to Free Memory

ID: Q101422


The information in this article applies to:

BUG# 8895 (4.2)

SYMPTOMS

An application that uses DB-Library (DB-Lib) bulk copy (BCP) functions encounters DB-Lib error 10000 after running for a significant amount of time:

Unable to allocate sufficient memory.


CAUSE

DB-Lib incorrectly fails to free memory after multiple calls to bcp_colfmt for the same column during a single BCP operation.


WORKAROUND

For a single BCP operation initiated with bcp_init, call bcp_colfmt only once for each column.


STATUS

Microsoft has confirmed this to be a problem in DB-Library version 4.20.00. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: dblib


Keywords          : kbprg kbtool SSrvBCP SSrvDB_Lib SSrvProg kbbug4.20 
Version           : 4.2 | 4.2 | 4.2
Platform          : MS-DOS OS/2 WINDOWS 
Issue type        : 

Last Reviewed: March 17, 1999