Invalid pointer operation

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

Invalid pointer operation

Postby alexhaifa » November 29th, 2005, 10:49 am

Hello,

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
alexhaifa
Junior Member
Junior Member
 
Posts: 35
Joined: November 22nd, 2005, 2:01 pm
Location: Brazil

Postby Kambiz » November 30th, 2005, 7:30 am

I checked your CloseQuery code, and it is correct. You should look for the problem somewhere else.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby alexhaifa » December 1st, 2005, 2:49 pm

Hello

Strange that the error only occurs when the assistent is visible and it occurs in the unit oabaloon at this line : inherited Destroy;

destructor TAssistantBalloon.Destroy;
begin
FAnchor := nil;
HTopicBtns.Free;
GTopicBtns.Free;
FOptions.Free;
FMsgDlgOptions.Free;
FTipsDlgOptions.Free;
FGuideDlgOptions.Free;
FHintDlgOptions.Free;
inherited Destroy;
end;

Thanks
alexhaifa
Junior Member
Junior Member
 
Posts: 35
Joined: November 22nd, 2005, 2:01 pm
Location: Brazil

Postby alexhaifa » December 1st, 2005, 2:54 pm

Hello

I found the error, I was using a component named XPMenu that was having some conflicts with your component, I had to take it off.
alexhaifa
Junior Member
Junior Member
 
Posts: 35
Joined: November 22nd, 2005, 2:01 pm
Location: Brazil


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron