Debug : Access violation at address XXXXXXXXX

Posted on 2006-06-15
Last Modified: 2010-04-05
The application I am working on is built using all OCXs what contains UI and SOAP interface. The most issues I receive have no more information except Access violation at address XXXXXXXXX and sometimes it is really hard to find the code location what raises the exception.

What I want is the way to find out the exact code what raises the exception. Is it possible to find the source code using the above error message. I mean by using the address shown in the error. Is it is the how I can? I tried with looking at CPU window but could not get much.
Question by:atul_parmar
  • 3
  • 2
LVL 10

Author Comment

ID: 16909838
I gone through
but I it did not helped me much.
LVL 28

Expert Comment

ID: 16910008
those addresses are memory addresses so they don't help much.

you could try madshi's components and adding debug info to everything and compile with that. I myself never did this, but some say this helps.

Expert Comment

ID: 16910051
Yep, go with ciuly, MadExcept can be your very good friend.
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

LVL 10

Author Comment

ID: 16910093
Does this means that with Delphi (only) it is not possible. Coz' our company's policy a bit strong and requires lot of thigs to do and after all it is not guaranteed that it can be approved.

I understand that the address shown in the message is memory address and can vary each time. But I still hope that there must be some way to do it.
LVL 28

Accepted Solution

2266180 earned 500 total points
ID: 16910316
well .. logging is the anser to that. but that is not so accurate, but is helpfull in locating the error. you can also try adding some try/excepts and maybe even logging the stacktrace (you will again have to use some 3rd party tools that are basically the same as madhi's - or write your own).
but all this is pretty hard to implement in the first place (from a time perspective) and it takes some time to debug. optimal would be some loging mechanism that logs when you enter a function, and when you leave it. so you can trace the execution like that, but you will have a lot of lines to write. best way is using some stack trace components: madhi's madexcept recommended.
LVL 10

Author Comment

ID: 16918130
Thank you Ciuly.

I agree that to simplify my life I will have to go with MadExpert or do it with my way. :)

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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