Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

invalid breakpoints

Status
Not open for further replies.

cleantone

Programmer
Aug 11, 2005
4
RO
I started a small project concerning some report. I added the visual part and everything was ok. The project has 3 buttons. I added the code for the first button and the program responded correctly but i lost the autocompletion. When I added the code for the second button the oddest thing happened: after some peculiar behaviour I started to debug the project i saw that the cursor hadn't gone to the lines normally executed but to some random lines in the vecinity(however the sequence was sintactically correct :) ) I breakpointed every single line and in runtime about half of those where called invalid. Further more, the valid breakpoints code lines are executed BEFORE the cursor passes them. I am really appaled by this behavior.
Oh yes, when i comment the lines that started the problem the problem stays. If i delete them alltogether it kinda dissapears.

PLS help
 
This can happen sometimes, I have never found an easy 'fix' when it does, I imported a D4 to D7 and it still happened.
more of an annoyance than a critical problem.



Steve: Delphi a feersum engin indeed.
 
cleantone,

what delphi version are you using?

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Ive seen this on 3,4 and in 7 after importing a D4 project.
I rang Borland support the first time I saw this in D3 they had no idea.


Steve: Delphi a feersum engin indeed.
 
What sometimes would help (with me that is) is delete all your .dcu files and rebuild your project. Delphi sometimes didn't clean up all things in those compiled units.
 
delete ALL your .dcu files

As we programmers often say 'Are you sure you want to do this?'

Just do the .dcu's that have been built from your source.




Steve: Delphi a feersum engin indeed.
 
i suspect the problem lies in one of the "other" project files like the ".dof", ".cfg" or ".dsk" file. try to delete those...

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
I have also been through this problem.

Delete all .dsk files, and rebuild the project.

Do you have different versions of the same projects in different directories or Have you opened another unit with the same name from a different directory.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"There is always another way to solve it, but I prefer my way.
 
well it's the 3rd identical project in 3 separated dirs. Same problem in all 3 of them.

Actualy i don't have any .dsk. I've deleted the cfgs, still no improvement
 

Have you tried to Build (instead of just compile)?

Menu: Project / Build <YourProgramName>

 
Try closing just your .pas files, not the project and reopening them from Project Manager. I'm just wondering if you have accidently opened a file from one of the other dirs as I've experienced the compiler stepping in to open units with the same name but from different dirs before, which haven't been part of the project in any way.
 
for anyone who cared:

the compiler was off with 3 lines because somehow I wrote some cr's and lf's in the source
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top