Microsoft KB Archive/101422

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 15:02, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

BUG: Multiple Calls to bcp_colfmt Fail to Free Memory

Q101422



The information in this article applies to:


  • Microsoft SQL Server Programmer's Toolkit, version 4.2



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 : kbprogramming kbtool
Issue type :
Technology : kbSQLServSearch kbAudDeveloper kbSQLServPTK420


Last Reviewed: March 18, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.