When the error occurs the program opens the control.inc with the following code:
procedure TControl.Click;
Begin
//DebugLn(['Tcontrol.click ' ,DbgName(Self)]);
If (not (csdesigning in componentState)) and (ActionLink <> nil) and
((Action=nil) or (@Fonclick <> @Action.OnExecute) or Assigned(FOnClick)) then
ActionLink.Execute(self)
Else
If Assigned(FOnClick) then
FOnClick(self);
End;
The program highlights the bold area in grey with an little green arrow to the side.
When I run the program from the executable it gives an error saying Access violation.
The grey line with the green arrow, means that you are running in the debugger.
However, the fact that you the debugger shows this location is odd.... Either:
* Your something went wrong with your form1. Inspect (tooltip, or watches Shift-F5) the value of "self" and "FOnClick"
* Your app is not compiled with debug info. Menu "Project" => "Project options" => tab "linking" compile with debug info (either the option with -g, or -gw)
You can use the stacktrace (Menu "View" => "Debug windows" => "callstack" to see more info were you get called.
You could set a breakpoint (red bullet in the gutter, just mouse click the gutter, or use F5) to stop on the begin of you procedure, and single step it with F8