I returned to the problem and found the following:
- If the form is the main form of the application, then everything is OK
- Otherwise I get AV and AdvOfficePager does not draw correctly. On AdvOfficePage I use a dynamically created fubform.
I returned to the problem and found the following: