Loadlibrary, and then open a fmx form in DLL, then call to FreeLibrary will freeze.

Loadlibrary, and then open a fmx form in DLL, then call to FreeLibrary will freeze.

Steps:
1.Compile the attachment. Then put the output .exe and .dll together.
2.Click button1 to open Firemonkey form in DLL, then close the firemoneky form.
3.Close Host App. Host App will freeze.

https://drive.google.com/open?id=1R2Q_MnwWTa9pN54JUWg_aPLjzI8Z_nLi
https://drive.google.com/open?id=1R2Q_MnwWTa9pN54JUWg_aPLjzI8Z_nLi

Comments

  1. I find it a little hard to believe that this could ever work. So perhaps you made a trivial app that appeared to work. But it's well known why this isn't expected to work.

    ReplyDelete
  2. David Heffernan I think it's expected to work. According to docwiki here:http://docwiki.embarcadero.com/RADStudio/Berlin/en/FireMonkey It says:However, you can:

    Use a FireMonkey library with a VCL application, or use a VCL library with a FireMonkey application, as described in Shared Libraries for OS X. And they have show how to do it here:https://community.embarcadero.com/blogs/entry/writing-a-firemonkey-dll-for-use-with-a-vcl-application-34

    But I tested it in Berlin or Tokyo, this no longer work. This also happens to dylib on Mac contains FMX form.
    docwiki.embarcadero.com - FireMonkey - RAD Studio

    ReplyDelete
  3. That blog article is really badly written. I wouldn't trust a word of it.

    ReplyDelete

Post a Comment