Solved

How to use Find Error

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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