Finalization event not called

Add-in Express™ Support Service
That's what is more important than anything else

Finalization event not called
Finalization event not called 
Karim




Posts: 164
Joined: 2006-01-02
Hi,

When I close outlook. The Finalization event is not called.
Initialization is called but not finalization

Yet there is no Outlook process.
In which case does this occur?
Config: Windows 10 + Office 2016 64-bit



procedure TAddInModule.adxCOMAddInModuleAddInFinalize(Sender: TObject);
begin
  Windows.OutputDebugString('enter adxCOMAddInModuleAddInFinalize');
end


//...
initialization
TadxFactory.Create(ComServer, TMoovappsAddin, CLASS_MoovappsAddin,
  TAddInModule);

   Windows.OutputDebugString('Initialization');

Finalization
    Windows.OutputDebugString('Finalization');

end.
Posted 15 Feb, 2018 06:41:34 Top
Andrei Smolin


Add-in Express team


Posts: 15086
Joined: 2006-05-11
Hello Karim,

Please check https://www.add-in-express.com/creating-addins-blog/2010/05/04/outlook2010-fast-shutdown/. Although that article targets the .NET edition of Add-in Express, it also applies to the VCL edition; some events are named differently but the essence is the same: you won't receive that event by default.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Feb, 2018 07:28:35 Top