Eric
Tue May 18 10:19:02 CDT 2004
A C5 error is an Access Violation error and can be caused all kinds of
things. This low level error cannot be handled by VFP. Some causes I've seen
over 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
http://support.microsoft.com/?id=321550
- 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
http://support.microsoft.com/?id=193952
- HP LaserJet 4000 driver:
Here's some documentation:
FIX: Divide by Zero Creates Err with Third-Party Print Drivers
http://support.microsoft.com/?id=183522
PRB: Memory Error with HP LaserJet 4000 TN PCL 5e Driver
http://support.microsoft.com/default.aspx?scid=kb;en-us;182137
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
http://support.microsoft.com/default.aspx?scid=kb;en-us;257624
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.
http://support.microsoft.com/search/default.aspx?Product=fox&Queryc=C0000005&Query=C0000005&maxResults=150
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:
http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/
For VFP7, it is Service Pack 1:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=B1BFB6C2-261E-4B7D-8838-8DCD5478A9EB
For VFP8, it is Service Pack 1:
http://www.microsoft.com/downloads/details.aspx?FamilyId=018705E6-DF6A-4695-965E-459FE5A761F7&displaylang=en
Info on the fox wiki:
http://fox.wikis.com/wc.dll?Wiki~c0000005Error~VFP
http://fox.wikis.com/wc.dll?Wiki~C0000005ExError~VFP
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8