Solved

How to use Find Error

Posted on 1999-01-14
5
151 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

10 Experts available now in Live!

Get 1:1 Help Now