Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Eric den Doop
  Where is Eric den Doop?
 Eric den Doop
 To: Terrence Ho
  Where is Terrence Ho?
 Hong Kong
 Hong Kong
 Terrence Ho
Subject: RE: Allways C5 Error running on XP Platform
Thread ID: 33860 Message ID: 33865 # Views: 3 # Ratings: 0
Version: Visual FoxPro 7 Category: Errors & Debugging
Date: Thursday, December 04, 2003 3:57:03 PM         

Can be all kinds of things. This low level error cannot be handled by VFP. Some causes I've seen during the past years:

- resident virus scanners:
I advise only to use virus scanners that allow you to exclude certain files, folders or file types from the scan process. Always exclude DBF, FPT, CDX, DBC, DCT and DCX files. You may want to check the following article:
HOWTO: Optimize Visual FoxPro Applications While Using Norton AntiVirus

- poor hardware (mostly network adapters):
Update the drivers or replace the hardware. I'd only invest in 100mb or gigabit network adapters.

- ActiveX controls (OCX)
- corrupt index file content
- corrupt memo file contents
- corrupt resource files (foxuser.* / SYS(2005)):
Shutdown your app or VFP and remove the foxuser resource files. These files are recreated automatically the next time you start your app/vfp. Read this article to learn more about trouble shooting file corruptions.
HOWTO: Troubleshoot to Resolve Suspected Corruption

- HP LaserJet 4000 driver:
Here's some documentation:
PRB: Memory Error with HP LaserJet 4000 TN PCL 5e Driver

Sometimes it helps to remove the printer setup information from the report files. Here's some info on how to do that:
HOWTO: Clear Report TAG, TAG2, and EXPR Fields Using .pjx Hooks
If you're using VFP8, then you can prevent VFP from storing printer info in the report files. To do so, uncheck the "Save printer environment" option on the Reports tab of the VFP Options dialog.

The Microsoft KnowledgeBase contains quite a few articles related to the C5 error.

Lots C5 errors are fixed by the VFP Service Packs. Make sure you're using the latest Service Pack. For VFP6, it is SP5 which can be obtained here:

For VFP7, it is Service Pack 1:

For VFP8, it is Service Pack 1:
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts


Allways C5 Error running on XP Platform Posted by Terrence Ho @ 12/4/2003 3:01:09 PM
RE: Allways C5 Error running on XP Platform Posted by Eric den Doop @ 12/4/2003 3:57:03 PM
RE: Allways C5 Error running on XP Platform Posted by Jose Mak @ 2/17/2004 4:17:36 PM
RE: Allways C5 Error running on XP Platform Posted by Eric den Doop @ 2/18/2004 12:57:47 AM