I'm trying to display FMX form from a DLL and I'm failing miserably.

I'm trying to display FMX form from a DLL and I'm failing miserably. To be precise, form shows OK, but cleaning after it doesn't work. When I close the form, its taskbar icon stays on the taskbar. Also, I cannot shut down my DLL host application as it gets stuck somewhere (seemingly in d3d11.dll).

Full project is here: https://github.com/gabr42/GpDelphiCode/tree/master/FMX%20from%20DLL

Long StackOverflow question with all details: https://stackoverflow.com/q/47159637/4997

If anybody can help, I'd be most grateful. I did search around, but all posts on that topic seem to be from 2011 and they refer to XE2. FireMonkey was much different back then and those old solutions don't work anymore.
https://stackoverflow.com/q/47159637/4997

Comments