Microsoft KB Archive/244787

= BUG: Access Violation When You Use FormatNumber VBScript Function in ASP =

Article ID: 244787

Article Last Modified on 7/16/2001

-

APPLIES TO


 * Microsoft Active Server Pages 4.0

-



This article was previously published under Q244787



SYMPTOMS
When using the VBScript function FormatNumber in Active Server Pages (ASP), the following error might occur:

ASP 0115 Unexpected Error. A trappable error occurred. The script cannot continue running.

This is a fatal error that causes the Web site to go down. You should see the following in the debug log:

CDB: integer divide by zero

Make sure that VBScript is on the call stack (Vbscript.dll, version 5.0x).



CAUSE
This error is caused by a race condition in the FormatNumber function that can occur when multiple threads are calling FormatNumber (usually under heavy load)



RESOLUTION
To resolve this problem, upgrade to VBScript 5.1, which is included with Windows 2000.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

