Home TOleControl instantly crashes when Form is created
 I'm trying to use an ActiveX control in a Delphi project for a signature pad. The code has to reside in a DLL because we're interacting with a legacy application which I have no control over (thus no control over the DLL API either). My code crashes with a non-continuable exception as soon as the form with the TSigPlus control on it is loaded. I believe it may have to do with CoInitialization? But I have no idea what the proper procedure for that is (and I can't co-initialize in the host application). I have this minimal example: Dll code: library DllTest; uses System.SysUtils, System.Classes, Vcl.Forms, Vcl.Dialogs, DllTestForm1 in 'DllTestForm1.pas' {Form1}, SIGPLUSLib_TLB in 'lib\SIGPLUSLib_TLB.pas'; var SigForm: TForm1; {$R *.res} procedure PrepareSigDLL; stdcall; begin ShowMessage('PrepareSigDLL!'); end; procedure GetSignature(Variables: PAnsiChar); stdcall; begin ShowMessage('GetSignature!'); end; procedure CloseSigDLL; stdcall; begin ShowMessage('CloseSigDLL!'); end; exports PrepareSigDLL, GetSignature, CloseSigDLL; begin Application.CreateForm(TForm1, SigForm); // Comment this out and everything is fine. end.  DllTestForm1 code: unit DllTestForm1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.OleCtrls, SIGPLUSLib_TLB; type TForm1 = class(TForm) SigPlus1: TSigPlus; end; var Form1: TForm1; implementation {$R *.dfm} end.  Not sure how to approach these sort of low level exception traces, any help is appreciated. If it helps, here is what the stack trace looks like.