"Control 'xxxxxx' has no parent window."

About once every 50 - 100 times I close my app, I get an "access violation error" and then endless repeating popups stating "Control 'pagerMain' has no parent window." pagerMain is a TAdvOfficePager component.



With 300+ PCs running this software, once every 50 - 100 closings means that this is happening several times a day.



Any ideas about what I can do to resolve this?



Thanks,

Mike

What controls are being used on this TAdvOfficePager and how do you interact with these controls during closing of the form?

Removing duplicates, they are:

    TAdvOfficePager;

    TAdvOfficePage;

    TAdvPanel;

    TLabel;

    TAdvSmoothCalendar;

    TAdvProgressBar;

    TAdvPicture;

    TAdvGlassButton;

    btnProjectListExcel:

    TAdvOfficeCheckBox;

    TAdvOfficeStatusBar;

    TAdvOfficePagerOfficeStyler;

    TAdvOfficeStatusBarOfficeStyler;

    TFormSize;

    TWebUpdate;

    TWebUpdateWizard;

    THTMLHint;

    TLbRijndael;

    TAdvScrollBox;

    TAdvGroupBox;

    TAdvEdit;

    TAdvComboBox;

    TAdvOfficeRadioButton;

    TMemo;

    TAdvDirectoryEdit;

    THTMLabel;

    TEllipsLabel;

    TAdvStringGrid;

    THTMListBox;

    TAdvPopupMenu;

    TMenuItem;

    THTMLCheckList;

    TAdvShapeButton;

    TAdvReflectionLabel

    TAdvSmoothLabel

    TWinXP

    TAdvGlowButton

    THTMLStaticText



    TADOConnection;

    TADOQuery;

    TDataSource;

    TADOStoredProc;

    

No OnClose event.



OnCloseQuery here:



procedure TfrmMain.FormCloseQuery(Sender: TObject; var CanClose: Boolean);

var

   iniFile : TIniFile;



begin

   try

      slstEmail.Free;

      slstAssigned.Free;

      slstStatus.Free;

      slstData.Free;



      ilstOpenNodes.Free;



      iniFile := TIniFile.Create(fileCONFIGINI);

      iniFile.WriteInteger(secSETUP, 'MainPage', pagerMain.ActivePageIndex);

      iniFile.Free;

   except

      on E:Exception do begin

        handleException(E.Message, '', 'FormCloseQuery (Main 001)');

      end;

   end;

end;

We can't learn much from this information.

Did you try to add some exception logging tool to your app to learn more about the place in the code where this exception happened?

Sorry about including some form components (like TWebUpdate and the database components). They are obviously NOT on the TAdvOfficePager component.



The TAdvOfficePager components are:

    TAdvOfficePage

    TLabel

    TAdvStringGrid

    TAdvPanel

    TAdvProgressBar

    TEllipsLabel

    TAdvPicture

    TAdvGlassButton

    THTMLabel

    TAdvComboBox

    TAdvEdit

    THTMLCheckList

    TAdvOfficeCheckBox

    TAdvSmoothCalendar

    TAdvShapeButton

    TAdvOfficeRadioButton

    THTMListBox

    TMemo

    TAdvCircularProgress

    TAdvDirectoryEdit

    TAdvGroupBox

    TAdvScrollBox

    TAdvComboBox

What's interesting to me is that I've used these same components for years without problems. This has just cropped up in the last few months. I don't update with every new release. I always update before contacting you, just to make certain a new release has not resolved my issue.



What kind of exception logging tool do you recommend?

I'd recommend Eurekalog: http://www.eurekalog.com/