none
Fatal Exception Code C0000005

    Question

  • I work for a company that has written a Rental Software program in Visual Fox Pro 7.0.  We don't constantly get the message and its become nearly impossible to track down exactly whats going on.  During in house testing we on occassion will find the error.  But recently it seems to be happening a lot to our customers where it happens in unusual place at time when printing reports or just random areas before printing the contract or before the print job is spooled.  The error message is Microsoft Visual Foxpro: Fatal Error: Exception code=C0000005 @ etc.  The customer will usually screen print the information and we hand the screen prints to our Fox Pro programmers and they have not been able to control or stop the error message.  I had read somone that Fatal Exceptions were general errors with in Fox Pro.  Does anyone have any suggestions on what causes these messages and possibly how I can help our programmers track down the message.  Thanks for you help.
    Tuesday, July 26, 2005 8:43 PM

Answers

  • This is normally a printer driver issue.  Either update the driver, or remove the printer info in the report, or Both.

    These are frustrating problems, check the Microsoft site for a list of all the reasons this happens.

    Wednesday, July 27, 2005 6:18 AM

All replies

  • This is normally a printer driver issue.  Either update the driver, or remove the printer info in the report, or Both.

    These are frustrating problems, check the Microsoft site for a list of all the reasons this happens.

    Wednesday, July 27, 2005 6:18 AM
  • A C00000005 error is the old Windows "General Protection Fault".  It is a fatal error that could be caused by many things.

    - Could be memory
    - A faulty printer driver (older HP drives are know to cause this)
    - A network card
    - Your own programming could have:
    - memory leaks
    - Improper Garbage Collection (dangling objects)
    - etc.

    See:
    http://fox.wikis.com/wc.dll?Wiki~C0000005ExError
    http://fox.wikis.com/wc.dll?Wiki~c0000005Error
    http://fox.wikis.com/wc.dll?Wiki~ManualGarbageCollection

    HTH

    Wednesday, July 27, 2005 10:50 AM
  • I solved it executing this script before I use VFP, but I don't know what of these variables fix the problem:

    File: 'Sets.prg'

    Content:
    SET ANSI ON
    SET AUTOSAVE ON
    SET BELL OFF
    SET BELL TO 400,2
    SET BLINK ON
    SET BRSTATUS OFF
    SET CARRY OFF
    SET CENTURY ON
    SET CLEAR OFF
    SET CLOCK OFF
    SET CONFIRM OFF
    SET CONSOLE ON
    SET CURSOR ON
    SET DATE ITAL
    SET DEBUG OFF
    SET DECIMAL TO 16
    SET DELETE ON
    SET DELIM OFF
    SET DEVE ON
    SET DEVI TO SCREEN
    SET DOHI OFF
    SET ECHO OFF
    SET ESCAPE OFF
    SET EXACT OFF
    SET EXCLUS OFF
    SET FIELD TO
    SET FIXED OFF
    SET FORMAT TO
    SET FULLP ON
    SET HEAD OFF
    SET HELP OFF
    SET HOURS TO 24
    SET KEYCOMP TO DOS
    SET LOCK OFF
    SET MARK TO "-"
    SET MARGIN TO 0
    SET MEMO TO 72
    SET MOUSE ON
    SET MULTI ON
    SET NEAR OFF
    SET NOTI OFF
    SET OPTI ON
    SET PALETTE ON
    SET POINT TO "'"
    SET PRINT OFF
    SET PRINT TO
    SET PROCE TO
    SET REFRE TO 1
    SET REPRO TO 0
    SET SAFE OFF
    SET SCOR OFF
    SET SEPA TO "."
    SET SHADOW ON
    * SET STAT OFF
    SET STEP OFF
    SET STICKY ON
    SET TALK OFF
    SET TEXTM OFF
    SET TYPEA TO 50
    SET UDFPA TO VALUE
    SET UNIQUE OFF
    SET VIEW OFF
    SET FUNC  2 TO ""
    SET FUNC  3 TO ""
    SET FUNC  4 TO ""
    SET FUNC  5 TO ""
    SET FUNC  6 TO ""
    SET FUNC  7 TO ""
    SET FUNC  8 TO ""
    SET FUNC  9 TO ""
    SET FUNC 10 TO ""
    *
    SET BELL ON
    SET CONFIRM OFF
    SET EXCLUS OFF
    SET DATE ITAL
    SET CENTU ON
    SET DELE ON
    SET STATUS BAR OFF
    SET CLOCK STATUS
    SET MESSAGE ON
    SET MESSAGE TO ""
    SET TALK OFF
    SET ECHO OFF
    SET SAFE OFF

    Tuesday, April 28, 2009 7:17 AM