?
Solved

How to use Find Error

Posted on 1999-01-14
5
Medium Priority
?
162 Views
Last Modified: 2010-04-06
Hi,

I have some difficulties with using Find Error command in Delphi. My program
is giving a run time error (Access violation at address  xxxx Reading yyyy). To find the
the problem I am using Find Error(under Search Menu) and giving the address xxxx. But anyway, Find Error
gives  a message saying that error address is not found. In my project options
I turned on the options Debug information, local symbols, Symbol info, assetions(C), and built all
the project but the result was the same.(I am using D3)

What must I do. Thanks.
0
Comment
Question by:mlxsm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1356669
I've never managed to get this to work in D3/D4, with a lot of trying. I put it down to it just not working!

I'll be interested if some comes up with the proper way to make this work...

Cheers,

Raymond.

0
 
LVL 20

Accepted Solution

by:
Madshi earned 800 total points
ID: 1356670
I'm doing in this way:

(1) Set a breakpoint to the first line in the project.
(2) Run the project (until it stops at the breakpoint)
(3) Now start Find Error
(4) Give in the address where the exception occured with a "$" before the address (e.g. $1234ABCD)

That works for me in Delphi4. Of course you'll have to run exactly the same sources that produced the exception with all nessecary compiler/linker options.

If that doesn't help, try this hack: Run regedit.exe. Add a new string value to "HKEY_LOCAL_MACHINE\Software\Borland\Delphi\3.0\Debugging\EnableCPU" and set it to "1".
Now you should see a big debug window when an exception occurs, in the left you see the addresses. Now scroll (or jump) to the exception address.

Regards, Madshi.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1356671
Hello all... Does any of you know how to use the CPU window and find certain errors and stuff?

-Viktor
--Ivanov
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1356672
Hi Viktor,

to find errors, use the "Find Error" function...   :-)))
What do you mean with stuff here?

Regards, Madshi.
0
 

Author Comment

by:mlxsm
ID: 1356673
Thanks Madshi
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

801 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