Origin of Access Violation

Posted on 2007-10-11
Last Modified: 2010-04-05

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?

Question by:TonyJix
    LVL 19

    Accepted Solution

    install the trial version of Eurekalog ( and try to reproduce.
    LVL 13

    Expert Comment

    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.

    Author Comment

    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
    LVL 19

    Expert Comment

    yes, use Eurekalog

    Author Comment

    nice app...

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now