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