Personal..
I have a problem here that I don't know anymore what it could be...
I have a Form (fsMDIForm) where when I click on the TSpeedButton button, all the OnClick event routines are executed (basically it is an SQL that authenticates the user in the database) but when debugging, when executing the entire Begin/End block, an exception SIGSEVG is generated ..
Through CallStack I saw that the error is on line 2911 of control.inc
procedure TControl.Click;
function OnClickIsActionExecute: boolean;
begin
Result:=false;
if Action=nil then exit;
if not Assigned(Action.OnExecute) then exit;
if not Assigned(FOnClick) then exit;
Result:=CompareMethods(TMethod(FOnClick),TMethod(Action.OnExecute));
end;
var
CallAction: Boolean;
begin
//DebugLn(['TControl.Click ',DbgSName(Self)]);
CallAction:=(not (csDesigning in ComponentState)) and (ActionLink <> nil);
// first call our own OnClick if it differs from Action.OnExecute
if Assigned(FOnClick)
and ((not CallAction) or (not OnClickIsActionExecute)) then
[b] FOnClick(Self);[/b]
// then trigger the Action
if CallAction then
ActionLink.Execute(Self);
end;
Windows 10 x64
Lazarus 2.0.12
FPC 3.2.0
Build Mode: Debug
Any idea what it might be or any tips from how can i debug...?