An exception class EAccessViolation with message AccessViolation at address 00491AA7 read of address 00000000 has shown up in my program. need to solve this one, but can find the light. help!!
I have found that access violations occur when you are trying to do something with an object that no longer exists or hasn't been created yet. For instance, if you have a form named frmTwo with a function GetInfo and frmOne is trying to use GetInfo, but frmTwo hasn't been created.
Have you located where in the code the error occurs? What line is the program trying to run when you get the violation?
Leslie
Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
Usualy the debugger will halt execution somwhere past the point where the Exception was generated. put a breakpoint in the code a few lines in front of this, and move it up until you dont get the error, then use the 'step' button to find the exact line where the error is generated.
But as lespaul says this is often (but not always) down to trying to access objects that havnt been 'created'.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.