Kbase P145199: Why do System.AccessViolationException errors occur?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  23/04/2009 |
|
Status: Unverified
GOAL:
Why do System.AccessViolationException errors occur?
GOAL:
What is a System.AccessViolationException?
FACT(s) (Environment):
Windows
OpenEdge 10.2x
FIX:
The System.AccessViolationException exception generally indicates that the AVM crashed while carrying out some operation. .NET catches the exception and we display the error message.
The AVM doesn?t actually stop executing, as it does when you?re not using .NET, because the exception is caught and handled. However, the AVM is likely to be in a state in which it can no longer function properly.
The same general rule applies in this case as in the non-.NET case: the AVM should not crash no matter what you do in your code. If you see this exception it is most likely a bug in the AVM and it should be logged. Of course, you should still narrow the code down as far as possible before submitting the bug.