KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q68382: Multithreaded fcvt() and ecvt() in C 6.00 May Cause GP Fault

Article: Q68382
Product(s): See article
Version(s): 6.00
Operating System(s): OS/2
Keyword(s): ENDUSER | buglist6.00 fixlist6.00a | mspl13_c
Last Modified: 1-FEB-1991

The multithreaded versions of the fcvt() and ecvt() functions that
shipped with the Microsoft C version 6.00 compiler can cause a GP
fault. This includes the versions in LLIBCMT.LIB, LLIBCDLL.LIB, and
CDLLOBJS.LIB.

Microsoft has confirmed this to be a problem in C version 6.00. This
problem has been corrected in the C version 6.00a maintenance release.

As a workaround, the gcvt() function can be used if the numbers are
first coerced into the correct format. The gcvt() function will return
fcvt() format if the number is greater than 0.1 and ecvt() format if
the number is less than 0.1. In addition, sprintf() can be called with
the %f or %e format specifier to return the required string.

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.

Copyright Microsoft Corporation 1986-2002.