Crashing when using Form in dll

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36031
    passion1
    Participant

    Hi

    I just started using AlphaControls.

    I have a Form with AlphaControl skin which is embedded in a Delphi dll and this dll is called from a main application that uses its own scripting language to call the dll.

    The dll works fine and the Form that is displayed is using the AlphaControl skin.

    However, when I close the Form of the dll and continue to use the main application, the dialogs of the main application now suddenly use the skin of my dll form! Then when I try to close any dialog in the main application it crash.

    The main application is not my own software. I am merely calling my own dll containing the Form with skin from the main application.

    How can I prevent the main application from inheriting the skin from my dll (and also leading to a crash)?

    My dll with skin is not suppose to interfere with the main application (which is not a Delphi application).

    Thanks.

    #51534
    Support
    Keymaster

    Hello!

    Try to change TsSkinManager.SkinningRules.srStdForms and srDialogs to False.

    And place the TsSkinProvider component to your forms for skinning them.

    Write here about results, please.

    #51614
    passion1
    Participant

    Thank you for our reply.

    I run into other problems not caused by AlphaControls and anyway had to abandon that approach.

    Thanks anyway.

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