Maybe you can help me. Why when I close my application I have this error
" Invalid pointer operation"
Thanks
In my events CloseQuery I have
- Code: Select all
const
Msg = 'Deseja fechar o Best Teacher?';
begin
If not Agente.MovingToSync then
Begin
If Not Agente.Showing Then Agente.Show;
Agente.MsgDlg.Title := 'Assistente';
CanClose := Agente.MessageDlg(Msg, mtWarning, [mbYes, mbNo], 0) = mrYes;
if CanClose and Agente.Showing and (Agente.DockSite = nil) then
Begin
Hide;
Agente.Visible := False;
End;
End
Else
CanClose := False;
end