Article ID: 221617 - Last Review: October 16, 2002 - Revision: 1.1

FIX: C0000005 Fatal Error After Frequent Use of CHRTRAN()

This article was previously published under Q221617

On This Page

Expand all | Collapse all

SYMPTOMS

Running an application that employs repeated calls to the CHRTRAN() function can result in the following error in Visual FoxPro 6.0:
Fatal error: Exception code=C0000005
Called from - <procedure name and line number> {<path and filename>}
The procedure name and line number will contain the method or procedure containing the CHRTRAN() function and its line number. Note that the line number will be 0 if the executable was built with the Debug Info checkbox in the Project Information dialog unchecked. The path and filename will contain the path and filename of the file containing the method or procedure.

Under the same circumstances, Visual FoxPro 5.0 may produce an error similar to the following under Windows NT:
An application error has occurred and an application error log is being generated.

vfp.exe
Exception: access violation (0xc0000005),Address 0xnnnnnnnn
Under Windows 9x, Visual FoxPro 5.0 may produce an error similar to the following:
VFP caused an invalid page fault in module <module name>

STATUS

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

This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why  (http://support.microsoft.com/kb/194022/EN-US/ )

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed  (http://support.microsoft.com/kb/194295/EN-US/ )

MORE INFORMATION

Steps to Reproduce Behavior

This behavior is not easily reproduced. It occurs with rapidly repeated calls to CHRTRAN() in Visual FoxPro COM server environments.

APPLIES TO
  • Microsoft Visual FoxPro 5.0 Standard Edition
  • Microsoft Visual FoxPro 5.0a
  • Microsoft Visual FoxPro 6.0 Professional Edition
Keywords: 
kbbug kbfix kbvs600sp3fix kbxbase KB221617
 

Article Translations