secman.dll locked by Outlook process

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

secman.dll locked by Outlook process
 
Martin Praxmarer




Posts: 316
Joined: 2008-05-19
Hi Guys,

i have a problem with Security Manager. We use it in our ERP Application to create/send Mails. when disabling the security warnings - and after sending enabling it again with also disposing the security manager the secman.dll keeps loaded by the outlook process - which is a huge problems for us in case of applicatino updates. users are closing our application - but cannot update because of secman.dll is still opened by outlook.

is there any solution for this?
Posted 18 Feb, 2020 02:41:57 Top
Andrei Smolin


Add-in Express team


Posts: 17840
Joined: 2006-05-11
Hello Martin,

Make sure you call Disconnect() before you dispose the security manager.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Feb, 2020 02:51:54 Top
Martin Praxmarer




Posts: 316
Joined: 2008-05-19
Hi Andrei,

thx for the very fast response. i can remember we removed the Disconnect call because it had closed outlook - we is what we did not wanted. i will give it a try!

thx you!!
Posted 18 Feb, 2020 03:00:39 Top
Andrei Smolin


Add-in Express team


Posts: 17840
Joined: 2006-05-11
Welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Feb, 2020 03:30:34 Top
Martin Praxmarer




Posts: 316
Joined: 2008-05-19
Hi Andrei,

Disconnect does not help! If the user had outlook opened before - calling Disconnect and Disposing the Manager does not release the secman.dll's...?
Posted 18 Feb, 2020 03:53:40 Top
Andrei Smolin


Add-in Express team


Posts: 17840
Joined: 2006-05-11
Hello Martin,

According to our guys, there's no 100% working way to unload a DLL from a process; FreeLibrary doesn't work sometimes. In this situation, your only ways is to ask the user to restart Outlook.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Feb, 2020 04:57:26 Top
Martin Praxmarer




Posts: 316
Joined: 2008-05-19
Damn - thx, but this is not really a way for us...
Posted 18 Feb, 2020 04:59:16 Top
Andrei Smolin


Add-in Express team


Posts: 17840
Joined: 2006-05-11
Martin,

You can stop the update, issue a notification that Windows 10 will show in the tray area, and wait for the user' reaction.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Feb, 2020 05:52:40 Top
Martin Praxmarer




Posts: 316
Joined: 2008-05-19
Sure - but we need to change our update process now. before securitymanager we used redemption where we did not had this problem (but others - which is why we switched to SM)
Posted 18 Feb, 2020 05:54:12 Top