Link to home
Start Free TrialLog in
Avatar of TonyJix
TonyJix

asked on

Origin of Access Violation

Hello,

I have this bug in my software that only happens once in a while. It's very hard to figure out where it is from.
Anyway, it pops up an Access Violation message that pauses my program.

Is there anyway to find out the cause of the Access Violation?

Greetings.
ASKER CERTIFIED SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Access Violations occur when you try and access something that doesn't exist.
For example if you put something in your forms OnCreate event handler and tell it to do something on a form that hasn't been created yet, you should get an Access Violation.

What kind of information is it giving you when you get the access violation? Do you get it when you are running and debugging in delphi, or without delphi?
If in Delphi, if you 'break', where does it take you to in your sourcecode. That might give you some clues.
Avatar of TonyJix
TonyJix

ASKER

It's not possible to run this app inside Delphi and get the same error... So unfortunately I have to do without that..

Is it not possible to intercept access violation and get info on the source code line
yes, use Eurekalog
Avatar of TonyJix

ASKER

nice app...