Slowness when using Move Items > Other Folders

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

Slowness when using Move Items > Other Folders
 
Andy W




Posts: 19
Joined: 2017-09-27
Good Afternoon Andrei,

I currently have an issue using the right click move to other folder functionality within Outlook. Where Outlook can sometimes lock up for up to 10 seconds and become unresponsive.

Creating a test com addin with just Addin-Express regions we can still see the problem. Removing both my addin and the test addin seems to resolve the problem, we've also ran these independently and the issue still occurs.

I've found this article https://www.add-in-express.com/forum/read.php?PAGEN_1=1&FID=5&TID=16128#nav_start could this be something similar? If so could you supply the DLL.

Thanks.
Posted 28 Jun, 2021 09:29:14 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Andy,

If you use Add-in Express version 9.5, make sure that you use loaders of that version AND you have ADXAddinModule.UnmanagedHooks set to true.

If this doesn't help, please provide the exact Outlook build used and the complete scenario.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Jun, 2021 14:10:41 Top
Andy W




Posts: 19
Joined: 2017-09-27
Hi Andrei,

Currently using Add-in Express Regions 4.3.2661.

Outlook version: 16.0.0.5095 (32bit)

Scenario:

1. Have emails in Inbox.
2. Right click on mailItem > Move > Other folder.
3. Click between the different folders within the "Move the selected items to:".

Move clicking between the folders will be slow and cause outlook to reduce performance.
Removing the addin and the moving is much faster without any reduced performance.

Thanks.
Posted 01 Jul, 2021 05:16:44 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Andy,

To provide its functionality, Add-in Express Regions set several Windows hooks. The issue is: that Outlook control triggers the hooks while populating the tree. And setting several hooks worsens the issue a lot. We saw it in an Outlook from an Office Volume License build.

You probably know that Add-in Express Regions is part of Add-in Express for Office and .NET. In addition to hooks set by the Regions, Add-in Express for Office and .NET sets hooks of its own. And since that product uses a native-code dll to load your add-in (loader), we were able to move the code managing the hooks to an *unmanaged* DLL where that code is executed significantly faster. Thus, we solved this issue partially, so that the hooks are set only once (and all hook consumers are informed of the required hook events). Thus, the control populates 3-4 times faster. Still, there is a delay since the control itself still continues triggering the hook(s): only we now set a single hook instead of setting hooks several times. Note that in other Outlook builds that control doesn't trigger hooks at all and so it populates almost immediately.

There's an unmanaged DLL that we could use in the case of standalone Add-in Express Regions, too. But this looks like much too complex a change at the moment.


Andrei Smolin
Add-in Express Team Leader
Posted 02 Jul, 2021 07:08:01 Top
Andy W




Posts: 19
Joined: 2017-09-27
Hi Andrei,

Given that it's too complex a change to put in at the moment, would it be possible to get a DLL without the hook that's causing the problem.

Thanks,

Dan
Posted 13 Jul, 2021 03:10:35 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Andy,

We won't be able to provide such a DLL as turning off the hooks would mean loosing the functionality of the Add-in Express Regions.


Andrei Smolin
Add-in Express Team Leade
Posted 13 Jul, 2021 06:21:22 Top