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.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
... 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.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
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
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
... 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.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
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.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
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.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
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).
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
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.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
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.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
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
e_a_g_l_e_p_i Gmail in Outlook 2010 preview issue Using Outlook 4
I Outlook is stuck at "Updating Calendar" Using Outlook 1
AmonRa Outlook 365 calendar - too much white space Using Outlook 0
e_a_g_l_e_p_i Outlook 2010 Help setting up Gmail account in Outlook 2010 Using Outlook 3
C-S-R How to clear an Outlook (To Do) Task Flag? Using Outlook 8
N How do I make Outlook autocomplete addresses from a list of recognised <full_names> only? Using Outlook 2
P Outlook 2019 UI changes after 20H2 update Using Outlook 1
R How to restrict GWSMO sync to Outlook Send/Receive cycles Using Outlook 0
B Outlook 2016 Unable to view images or logos on the outlook 2016 emails the same html code works well when i use outlook 2010 Using Outlook 0
S Outlook 2007 crash linked to gdiplus.dll Using Outlook 0
P Sending email from outlook IMAP to GMAIL where embedded images are added as attachment Using Outlook 1
M Outlook 2010 How could I globally redesign an outlook template form/region/inspector template used to display mail lists or an individual mails? Outlook VBA and Custom Forms 0
T The Linked Image Cannot Be Displayed in Outlook Using Outlook 5
M Outlook 2010 Outlook 2010 with O365 / Exchange Online Using Outlook 0
S Outlook 2016 Change how Outlook shows me contacts in emails Using Outlook 0
A OutLook For Mac 16.46 Comes Up In Small Window When Opening Using Outlook 4
S Outlook 2007 - Automatic purge fail Using Outlook 0
T Outlook creating unwanted tasks in Tasks and Todo from emails Using Outlook 1
V vBA for searching a cell's contents in Outlook and retrieving the subject line Outlook VBA and Custom Forms 1
B vBA for exporting excel file from outlook 2016 Outlook VBA and Custom Forms 3
Horsepower Moving emails between folder Outlook for Mac Outlook Wishlist 8
Travis Lloyd Messages Won't Display In Outlook 2019 Home & Business Using Outlook 0
J Outlook 2019 i dont want to buy the snake oil ost to pst programs Using Outlook 1
B Outlook 2016 Outlook crashes when trying to print certain emails Using Outlook 5
T Outlook Template - textbox visible based on combobox selection Using Outlook 1
D We're sorry but outlook has run into an error Using Outlook 6
F Outlook 2010 Outlook 2010 and GMail Using Outlook 0
M Reverting The Outlook Search Box Location (or other undesired additions) Using Outlook 1
M Disable Contact Card Results when using "Search People" in Outlook Ribbon Using Outlook 7
P i-Phone 6s Plus receiving 2 notifications from Outlook email Using Outlook 1
C WARNING - DO NOT USE AN OUTLOOK.COM ADDRESS FOR GOOGLE ACCOUNT RECOVERY EMAIL Using Outlook 10
D Outlook 2016 Unable to load Outlook data pst file Using Outlook 5
M White square in body of Outlook Messages (O2016 Version 2012 32bit Click To Run) Using Outlook 4
M Outlook, send to > mail recipient - results in plain text email Using Outlook 1
R Why doesn't outlook use "Normal" style for new messages? Using Outlook 4
D Outlook 2016 Outlook not saving Sent Items Using Outlook 4
R How to Sync *all* Google Workspace Mail Folders with Outlook 2019 (MS365) Using Outlook 3
G Outlook 365 with iCloud account not syncing calendars Using Outlook 2
D Outlook 2016 Outlook Error Msg "The operation cannot be performed ..." How to Stop it Using Outlook 3
D Outlook.com premium finally dying... what do I do with my domain? Using Outlook.com accounts in Outlook 3
witzker Outlook 2019 is cutting Picture Extension *.pn_ Using Outlook 3
S Is there a free version of outlook? Using Outlook 0
peterbata Shared Tasks Outlook for Mac Using Outlook 3
L Ideas for Setup with New Office 365 Family Subscription (Outlook) Using Outlook.com accounts in Outlook 3
M Issue transferring Outlook 2016 email accounts & settings onto new computer Using Outlook 8
S Excel vba code to manage outlook web app Using Outlook 10
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 2
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
P Outlook 2013 Calendar Archiving Using Outlook 0
D Connecting Gmail to Outlook 365 - My Setup not working Using Outlook 2

Similar threads

Top