BUG: Dbcursorbind with Money Datatype May Hang Application

Last reviewed: May 5, 1997
Article ID: Q101849

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

SYMPTOMS

When a C function, using DB-Library (DB-Lib) cursors and doing a dbcursorbind of a money column to a C string variable, is called from a COBOL application, the application may hang (stop responding). On MS-DOS programs, if enough time is allowed to pass, the machine may restart itself. For OS/2 programs, if enough time is allowed to pass, the program may experience a general protection fault (GP fault). When the C function is called from a C program, the function works fine.

WORKAROUND

Instead of using dbcursorbind to bind the money column to a program variable, use dbcursorbing with a vartype of NOBIND on the money columns and use dbconvert to convert the data from money to string.

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 freeze gp-fault
Keywords : kbbug4.20 kbprg SSrvCobol SSrvDB_Lib SSrvProg
Version : 4.2 | 4.2 4.2a
Platform : MS-DOS OS/2


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: May 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.