Recent

Author Topic: [SOLVED] First line of unit is in solid red background color.  (Read 4257 times)

Elmug

  • Hero Member
  • *****
  • Posts: 849
I have a version of a little test program that I've been studying, that compiles OK, no error messages, when the green Run arrow is pushed, its form  appears with buttons and so forth. When I push its only one button, the executable closes.

I compare the Unit code of it, with one project practically the same that has no problems, and I can see no reason for what happens.

The one thing is that for the project that has the problem the very first line "Unit Unit1;" is highlighted with SOLID RED color all across the SourceEditor.

I wonder if something got corrupt, maybe in another of the files of the project (which I have not yet inspected nor have a clue of how to).

I can delete the project, but I am curious as to why this is happening, and that's one way to build confidence.

Thanks for any suggestions.
« Last Edit: July 22, 2011, 03:00:09 am by Elmug »

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: First line of unit is in solid red background color.
« Reply #1 on: July 22, 2011, 02:40:55 am »
You marked a breakpoint (it seems your very first one  :D ).
Click the small yellow-red question-mark on the left and it will disappear. (See screenshot).
You can use breakpoints to stop your program at some point and check variables.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: First line of unit is in solid red background color.
« Reply #2 on: July 22, 2011, 02:58:40 am »
THANK YOU Blazeen.

I did as you say and now the program runs FINE!!

I'm glad I asked and happy for this forum and great help.

 

TinyPortal © 2005-2018