title: FireMonkey Form in a dll, loaded from a VCL Application
body: <p>I am attempting to load an FMX based dll, which includes an FMX form, from a VCL application which includes a VCL form.</p>
  <p>Taken from Release Notes - <a href="http://docwiki.embarcadero.com/RADStudio/en/Release_Notes_for_XE2_Update_2" rel="nofollow noreferrer">http://docwiki.embarcadero.com/RADStudio/en/Release_Notes_for_XE2_Update_2</a>:</p>
  <blockquote>
  <p>To create a DLL that uses GDI+, you need to start up GDI+ from your host application instead, as follows:</p>
  <p>For Delphi, add Winapi.GDIPOBJ to the interface section uses clause of your main form unit.</p>
  </blockquote>
  <p>Sounds all well and good, but in practice I am now getting an access violation on exiting my VCL application. I believe this is all linked to Initializing and Freeing the GDI+ but cannot find any more information regarding this.</p>
  <p>I have read through both these posts:</p>
  <p><a href="https://forums.embarcadero.com/thread.jspa?threadID=63425" rel="nofollow noreferrer">https://forums.embarcadero.com/thread.jspa?threadID=63425</a></p>
  <p><a href="https://stackoverflow.com/questions/7315050/delphi-xe2-possible-to-instantiate-a-firemonkey-form-in-vcl-application">Delphi XE2: Possible to instantiate a FireMonkey Form in VCL application?</a></p>
  <p>Anyone else come across this? Eventually I am hoping to get our C application loading the FMX dll (and GDI+), but part of this process involves getting VCL and a FireMonkey dll to work.</p>