SecurityManager.ConnectTo() performance

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

SecurityManager.ConnectTo() performance
Performance varies a lot on different workstations. 
Sergey Chizh




Posts: 73
Joined: 2012-10-23
Hi.

Could you please help us with SecurityManager performance. Our customers complain that it became too slow recently, which is very strange, because code is very old and hasn't been changed for many years.

We use the code below to disable security messages from Outlook and open new email window. SecurityManager version is 9.0.3400.

The call of SecurityManager.ConnectTo() is always between 12-14 seconds. Is there any way to speed it up? Or is it something in recent Windows updates? We have tested it on Windows 10 and Windows Server 2012 (both with all upgrades)

Thank you :)

ApplicationType = System.Type.GetTypeFromProgID("Outlook.Application")

OutlookApplication = Activator.CreateInstance(ApplicationType)

Try
SecurityManager = New AddinExpress.Outlook.SecurityManager
SecurityManager.ConnectTo(OutlookApplication)
SecurityManager.DisableOOMWarnings = True
Catch ex As Exception
secManException = ex.ToString
End Try
Posted 14 Aug, 2018 02:22:15 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Sergey,

Try to pass an Outlook.Explorer to the SecurityManager.ConnectTo() method. Does it work any better?


Andrei Smolin
Add-in Express Team Leader
Posted 14 Aug, 2018 08:27:16 Top
Sergey Chizh




Posts: 73
Joined: 2012-10-23
Hi Andrei!
Unfortunately it is not. The results are the same. Only if Outlook is running, the code works fast.
Posted 14 Aug, 2018 11:43:52 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Sergey,

Is it possible that in the modified code the delay occurs when calling GetExplorer(), not on the SecurityManager.ConnectTo() method call? If so, try to call GetExplorer on the Outbox.


Andrei Smolin
Add-in Express Team Leader
Posted 15 Aug, 2018 02:36:58 Top
Sergey Chizh




Posts: 73
Joined: 2012-10-23
Hi Andrei,

Seems you are right :( When I initialize OutlookExplorer before passing it to the method, it works fast, but OutlookExplorer initialization is slow. I think I can't do nothing with it...
Thank you for your time!
Posted 16 Aug, 2018 03:15:53 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Sergey,

Sergey Chizh writes:
I think I can't do nothing with it...


Try to get the Explorer on a folder with a minimum of items.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Aug, 2018 03:35:43 Top