BUG: Borland DB-Lib with Vines Fails with Memory Error

Last reviewed: April 29, 1997
Article ID: Q110007

The information in this article applies to:
  • Microsoft SQL Server Programmer's Toolkit, version 4.2
BUG# 9737 (4.2)

SYMPTOMS

A program compiled using Borland's C compiler and the Microsoft MS-DOS D- Library for Borland compilers can fail with a DB-Lib error,

   Unable to allocate sufficient memory

on the first call to dbopen when used with the Network Library (Net-Library) for Banyan Vines IP.

CAUSE

This problem is only known to occur when the SQL Server name is hard coded into the program using strcpy or similar function.

WORKAROUND

The following are workarounds to the problem:

  • Use "gets" to retrieve the name of the server.
  • Use any other Net-Library.
  • Run the program a second time.
  • Use the Microsoft MS-DOS DB-Lib files with a Microsoft compiler.

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: kernel dblib
Keywords : kbbug4.20 kbnetwork SSrvLan SSrvProg
Version : 4.2
Platform : MS-DOS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.