EnableEvents, Outlook equivalent

Status
Not open for further replies.

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
1st an aside. When I searched for "EnableEvents" as an unregistered user, there were results from a Forum search. However, as a registered users, search says there are No results.
Back to the topic, in some other MS Office 2010 products (eg Excel), EnableEvents can be used in VBA to avert mayhem caused by changing something that a new event might also access. In Outlook there is a DoEvents, which suggests that it's model assumes an event handler may cause mayhem, and blocks events while in the handler.
Background. MSWin8.1, a user with multiple .pst and one .ost (Hotmail Connector) datafile. A few rules in effect at the UI level, but that mechanism is not fine-grained enough to handle inbound emails from sources that insist on sending unwanted advertising that is quite similar to paid-for content. Hence, somewhat involved processing in ItemAdd event handlers.
 
... in some other MS Office 2010 products (eg Excel), EnableEvents can be used in VBA to avert mayhem caused by changing something that a new event might also access. In Outlook there is a DoEvents, which suggests that it's model assumes an event handler may cause mayhem, and blocks events while in the handler.
...
Forgot to mention why I'm wondering. OLK2010 seems to be causing errors in all the .pst and .ost data files, fairly frequently. Doesn't seem to impact using Outlook, but is annoying to be ScanPST often; especially since multiple passes are required on each data file. Worse, the main .pst canNot be entirely cleaned up, since after two passes, ScanPST fails to display a Repair option.
 
I'll look into the search problem. On the pst, repeated errors usually mean something is accessing the pst files (besides outlook). Third party sync software is the frequent culprit, a failing hard drive can also cause errors. You really shouldn't run scanpst all the time, just to see if there are errors - it's always going to have a few errors. When outlook loads it will check the pst and fix the errors, but if there are a lot, it will tell you to run scanpst.

For the spam filtering, you can use an itemadd macro or a run a script rule, if the junk filter or standard rules aren't sufficient.

I'm not sure I'd say doevents or enable events purpose is to avert mayhem...


Sent from my iPad using Tapatalk
 
... Third party sync software is the frequent culprit, a failing hard drive can also cause errors. ...
HardDrive is fairly new, and diagnostics indicate it is fine. No 3rd-party sync sw, but several 3rd-party COM Addin-Ins: 1) Classic Menu, 2) Redemption Helper.
I did notice several COM Add-Ins that are not in use, so will disable: 1) Microsoft Exchange Add-in, 2) Microsoft Outlook Social Connector, 3) Microsoft SharePoint Server Colleague Import, 4) OneNote Notes about Outlook Items.
 
HardDrive is fairly new, and diagnostics indicate it is fine. No 3rd-party sync sw, but several 3rd-party COM Addin-Ins: 1) Classic Menu, 2) Redemption Helper.
I did notice several COM Add-Ins that are not in use, so will disable: 1) Microsoft Exchange Add-in, 2) Microsoft Outlook Social Connector, 3) Microsoft SharePoint Server Colleague Import, 4) OneNote Notes about Outlook Items.
The 4 from microsoft won't cause problems but if you aren't using those features, they can remain disabled. Classic menu shouldn't cause problems but I'm not sure how it is integrated either. Whatever installed redemption helper could be the cause, but it really depends on what installed it.

Scanning the pst using antivirus software can also cause errors in the pst.
 
DoEvents does not block any events, it's rather the opposite. See some details here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents(v=vs.110).aspx

In some cases a DoEvents might be necessary, however, if you don't know what you do it rather adds to any mayhem as it can confuse the usual order of the events.

I only use DoEvents where something has been done in an event handler that seems likely to cause a DeadlyEmbrace. It would be better to determine that such a condition can occur, but that can be tricky.
 
The 4 from microsoft won't cause problems but if you aren't using those features, they can remain disabled. Classic menu shouldn't cause problems but I'm not sure how it is integrated either. Whatever installed redemption helper could be the cause, but it really depends on what installed it.

Scanning the pst using antivirus software can also cause errors in the pst.
I installed Redemption helper, to be able to look at mail item elements that Outlook security model blocks access to.
As to antivirus, the Win8.1 computer where the issues occur only uses Windows Defender (that MS says replaces MS Security Essentials, after Win7).
 
The Redemption Helper is an addition to the Redemption. You don't need the first in order to use the latter.

For testing I'd also disable classic menu.
 
The Redemption Helper is an addition to the Redemption. You don't need the first in order to use the latter.

For testing I'd also disable classic menu.
Classic Menu 6.0 got disabled inadvertently by installing MS EMET 5.1 . Update to Classic Menu 8.0 for Outlook 2010 resolved that problem.
 
I only use DoEvents where something has been done in an event handler that seems likely to cause a DeadlyEmbrace. It would be better to determine that such a condition can occur, but that can be tricky.
Turned out that, whatever had earlier implied a need for DoEvents, had been ObE. Not yet clear whether pulling DoEvents has cleared up causing errors in the *.pst and *.ost. However, it did resolve one oddity in the navigation pane, where back-tracking (<Alt><lt-arrow>) would not always retrace through folders visited -- DoEvents had likely been implicated in corrupting a list of folders that had been visited.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
H Spam email in Gmail not visible in Outlook Using Outlook 3
J How to transfer Win 10 Outlook to new Windows 11 pc? Using Outlook 8
J Renegade spam URL line displayed in old local Outlook 365 email title Using Outlook 3
G Reduce whitespace in Outlook desktop Contact Cards display Using Outlook 3
C Outlook classic via 365 Using Outlook 2
Dr. Demento Analogous Outlook code to read info into an array (or collection or whatever) Outlook VBA and Custom Forms 7
S Repair Outlook Using Outlook 8
V Outlook Form ListBox is not editable Outlook VBA and Custom Forms 2
F Outlook's contacts Using Outlook 1
D Outlook 2003 stopped dead Using Outlook 2
G Cannot receive emails from gmail account in Outlook 365 Using Outlook 1
E "Cannot display the folder. MS Outlook cannot access the specified file location" Using Outlook 8
P Outlook 2016 Working Offline Using Outlook 2
Rupert Dragwater Cannot reestablish gmail (email address) account in Outlook 365 Using Outlook 11
O Outlook 365 synchronisieren Exchange Server Administration 1
kburrows Outlook Classic - JPG files are corrupted when opened or saved Using Outlook 3
F Sync Outlook Calendar Using Outlook 0
G Change default font size in sticky notes - Outlook Desktop 2021 Using Outlook 2
C VBA in "New Outlook?" Using Outlook 0
D New Outlook with Business Basic Plans Using Outlook 0
D Outlook 2021 not working with Outlook 2003 installed Using Outlook 5
D Outlook 2003 stopped working - get they dialog box asking for username & Password Using Outlook 2
T Outlook 2021 hangs in close on taskbar occasionally Using Outlook 1
M Duplicate removal feature in Outlook 2021 is faulty Using Outlook 2
D.Moore Outlook COM addins source folder Using Outlook 12
P Removing Outlook 365 Account from Send/Receive Using Outlook 3
kburrows Outlook Automatically Merging Contacts Using Outlook 2
A Outlook 2016 Outlook 2016 vs. New Outlook Using Outlook 4
D Outlook Desktop App Email Software Using Outlook 0
efire9207 VBA Outlook Contacts Outlook VBA and Custom Forms 6
M Outlook not logging in to server Using Outlook 0
J Outlook macro to run before email is being send Outlook VBA and Custom Forms 3
R Outlook 2021 change view Using Outlook 2
K Outlook font corrupted in some point sizes, resets on close/open Using Outlook 2
J Is the Windows Outlook Tasks module really going to be gone? Using Outlook 6
F Outlook 2010 and Hotmail Using Outlook 1
A Outlook 2021 needs 'enter' for people search Using Outlook 2
HarvMan Outlook 365 Inbox Font Using Outlook 8
Retired Geek Outlook on MAC delete duplicate Sent emails Using Outlook 0
S New Outlook - IMAP ISSUES and support for addins? Using Outlook 1
C outlook.com fonts Using Outlook 2
R Outlook with several IMAP accounts generating folders with 1111 suffix Using Outlook 0
D Send email from Outlook Alias using Mac? Using Outlook 0
G Reply a selected message and remove blank space before signature Outlook 365 version 2406 64BIT Outlook VBA and Custom Forms 2
G Reply a selected message and remove blank space before signature Outlook 365 version 2406 64BIT Outlook VBA and Custom Forms 0
kburrows "New" Outlook Desktop App Mailbox Size Using Outlook 4
N Best way to sync calendar and contacts between Outlook 365 and Outlook on iPhone Using Outlook 4
H Macro to Delete Duplicate items in Outlook calendar where title is the same and date is the same Outlook VBA and Custom Forms 0
Y The New Outlook - Q's & Thoughts Using Outlook 28
M Start Outlook 365 at unified inbox Using Outlook 2

Similar threads

Back
Top