BUG: Access Violation When Using FormatNumber VBScript Function in ASP

ID: Q244787


The information in this article applies to:
  • Active Server Pages
  • Microsoft Internet Explorer version 5 for Windows NT 4.0


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 this to be a bug in the Microsoft products listed at the beginning of this article.


REFERENCES

Microsoft Web Application Stress Tool:

http://homer.rte.Microsoft.com
Internet Information Server (IIS) Exception Monitor:
http://msdn.Microsoft.com/workshop/server/iis/ixcptmon.asp

Additional query words:

Keywords : kberrmsg kbASP kbVBScript kbGrpASP
Version : WINDOWS:5; winnt:
Platform : WINDOWS winnt
Issue type : kbbug


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.