Problem with changing Parent

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34736
    ralfiii
    Participant

    I just stumbled over a bizarre bug in AC:

    When a panel holding some controls are mapped on to a different form (by re-assigning the parent of the panel) and resetting the panels parent afterwards, the application completely crashes at some point.

    Attached you'll find a little project.

    1.) Click the “Create form” button.

    2.) On the new form click the “Show panel on extra form” button.

    3.) A new form shows up. Close the new form (using the x or the Ok-Button).

    4.) Click the “Show panel on extra form” button again.

    BANG!!!

    The speed button seems to cause some AV.

    When skinning is switched off everything works fine.

    (it also works when the 2nd form itself is not child of a form)

    I just tried with AV 7.4.7 on a completely fresh Delphi2010 and the same bug occurs.

    Some skins seem to be more robust, there you have to repeat steps 3 and 4 twice until the bug occurs. (but still it occurs)

    HELP!!!!

    (The example may sound constructed, but I am skinning an application that supports form-docking and there this bug occurs frequently. It took me some time to construct an example that is that simple…)

    #46526
    Support
    Keymaster

    Hello

    Thank you, I see this issue and will research it.

    Try to place TsSkinProvider component, I think it helps.

    #46527
    ralfiii
    Participant

    True, in this case it helps, but in my real-life application I am having SkinProviders there and it still fails.

    Unfortunately the “real” app is much too big to post it here.

    Can you please have a look into that issue?

    Thanks,

    Ralf S.

    'Support' wrote:

    Hello

    Thank you, I see this issue and will research it.

    Try to place TsSkinProvider component, I think it helps.

    #46537
    ralfiii
    Participant

    I just downloaded and installed version 7.48 and it solves the problem.

    You're the man!!!!

    Thanks a lot!

    #46588
    Support
    Keymaster

    Thank you for demo, the issue was solved thanks this program 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.