Solved

How to use Find Error

Posted on 1999-01-14
5
156 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
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 200 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Delphi XE10 Round Image 2 154
oracle global variables 4 76
Convert MS Word document to a PDF file 9 90
shape, triangle, dbctrlgrid 3 17
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 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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 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