PageControl1 has no parent window.

Hello,

For the past few weeks, we've had an increasing number of users of our software complaining about an error that we haven't been able to reproduce on our end.

When opening a form, the error “PageControl1 has no parent window” appears on "PageControl1," which is a TAdvOfficePager component.

I know the error could originate from anywhere, but have other users of this component experienced a similar problem recently?

We're wondering if it might be related to a Windows update or something else, as we haven't made any significant changes ourselves.

What is the parent control of the TAdvOfficePager?
Did you place this TAdvOfficePager at design-time on the form or do you create it at runtime?
Do you have a stack trace?
Is this the latest version of TMS VCL UI Pack?
What Delphi version is this?

Hello,

Sorry, I didn’t reply because I wasn’t sure it came from AdvOfficePager.
After searching for a long time, I took version 3.8.6.2 of AdvOfficePager and changed the procedure with try except

TAdvOfficePager.SetActivePageIndex(const Value: Integer);

Try
if not HandleAllocated then
begin
ChangeActivePage(Value);
Exit;
end;
Except
End;

We use Rad Studio 10.4
TMAS VCL UI PACK 13.6.5.1
Except AdvOfficePager version 3.8.6.2 recompiled with TMSGUI

For now, it’s more stable with our clients!

We will apply this exception handling but better would be to be able to reproduce & understand the real cause and fix it. If you have sample source project + steps to reproduce, we can investigate this.