Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 Error
Message
From
20/01/2005 10:28:37
 
 
To
19/01/2005 17:16:14
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00978703
Message ID:
00978875
Views:
11
Hi John.

>Users of my applications get a C0000005 errir frin once to 5 times in an 8 hour day. This error kicks them out of the application. There seems to be no pattern about where they are in the application.
>
>Does anyone know what causes this error and especially, what can be done to prevent it?

In addition to the other suggestions, one way I eliminated C5 errors in my apps is to make sure that I don't do a RETURN inside a WITH statement. For example, I used to have code like this:
with This
  ... some code
  if SomeCondition
    return
  endif
  ... some code
endwith
Changing this to:
with This
  ... some code
  if not SomeCondition
    ... some code
  endif
endwith
or some other structure that prevents a RETURN while inside WITH has completely eliminated C5 errors from my apps (and of course it's better coding too).

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform