Solved

New to Delph 5 (need help)

Posted on 2001-07-14
11
162 Views
Last Modified: 2010-04-06
Hi, Ive recently upgraded to Delphi 5.

Ive written this app, and Im sure that there no problem with it.

But for some reason...when the app is running... It sort of "break"...like in some debugging mode... but it debugs... the ASM code... if I continue running the app..(F9)... it continues if there was no problem...

What is this...and can I turn it off.? Does this mean that these a bug in my program..?

Thanx..

0
Comment
Question by:CyberKnight
11 Comments
 

Expert Comment

by:revdmv
ID: 6282204
If you press f12 during program execution it halts the program and displays the CPU window. Pressing f9 will restart program execution.

I've never used this feature and I'm uncertain and how to turn it off. I assume you ran across it in the usual way, trying to access the code window while you thought you were viewing your form in the IDE during a debug session. Just make sure you are in Delphi and not your application and you won run into this.
0
 

Expert Comment

by:felonious
ID: 6282291
or it could be that you have inadvertently set a break point in your program.  i'd suggest looking through you code for any red dots on the left hand border of the code view (where you normally see the blue dots)

-felonious
0
 
LVL 5

Expert Comment

by:knowlton
ID: 6287158
Check your .DOF file.  Meaning, if your project file is called Project.DPR, then check your Project.DOF file in the same directory.

Sometimes Delphi does not clean this file properly and you'll find a breakpoint section that references non-existent breakpoint lines (that perhaps were once set but you removed).

HTH,

Tom
0
 
LVL 5

Accepted Solution

by:
knowlton earned 200 total points
ID: 6287168
The .DOF (Delphi Option File) is a simple text file that tracks special compilation options (pg 72 of Mastering Delphi 3).

The .DSK file may also have an invalid breakpoint section.

I think between the two you will find a possible answer.

0
 
LVL 4

Expert Comment

by:NicoLaan
ID: 6290646
Easier way to find (unwanted) breakpoints:
View --> debug windows --> breakpoints
Or press Ctrl - Alt - B

So you won't have to look through all your code.

Goodluck, Nico

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Expert Comment

by:knowlton
ID: 6290774
I am familiar with View - Debug Windows - Breakpoints, and that is the normal way to remove breakpoints.

BUT

Sometimes this does not clear ALL of the breakpoints.

Either the .DOF or .DSK files can refer to breakpoints (erroneously) and you have to clear out the [breakpoints] section in these files manually, or else the breakpoints will never go away.
0
 

Author Comment

by:CyberKnight
ID: 6299444
Hi KnowIton I think that you are actually right, my problem must definitely have been with the invalid breakpoints. Clearing out the [breakpoints] section in the .DOF file is the answer.

I dont think that I accidentlly hit F12 when running the app. (Wow, I didnt know that F12 during the running of the project actually did that, Thanx Revdmv.)

But KnowIton, even if there is an invalid breakpoint, should it break in "Delphi" and not to the ASM code..??
0
 
LVL 5

Expert Comment

by:knowlton
ID: 6300047
I think the only symptom of having a corrupt .DOF / .DSK file is that it stops in the Delphi code on a line that does NOT have a breakpoint set.

Normally, it would not break in the ASM code.
0
 

Author Comment

by:CyberKnight
ID: 6301493
OK, thanx...


Anyway...Im sure now these .DOF /.DSK files have been giving me hassles, so Tom gets the points...

Thanks for your help guys !!!!

0
 

Author Comment

by:CyberKnight
ID: 6301496
Thanx for your help!!!!!!
0
 
LVL 5

Expert Comment

by:knowlton
ID: 6302343
You're welcome!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
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 …

919 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

17 Experts available now in Live!

Get 1:1 Help Now