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
Retired Geek Outlook for the MAC with Yahoo accounts now very broken Using Outlook 6
S Outlook 2002- "Send" button has disappeared. Help please. Using Outlook 1
L How Stop Outlook Nag Messages Using Outlook 1
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 1
L I Cannot Sign Into My Outlook Account? Outlook VBA and Custom Forms 0
icacream Outlook 2021 - Google calendar in the peek Using Outlook 0
e_a_g_l_e_p_i Question about installing my Gmail account on my iPhone but still getting messages downloaded to my desktop Outlook. Using Outlook 3
F Want to add second email to Outlook for business use Using Outlook 5
kburrows Outlook Email Body Text Disappears/Overlaps, Folders Switch Around when You Hover, Excel Opens Randomly and Runs in the Background - Profile Corrupt? Using Outlook 0
M using excel to sort outlook appointment items Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i MY Outlook 2021 changed the format of the shortcuts for mail, calendar etc. Using Outlook 10
Z Outlook 2021 Outlook new emails notification not working Using Outlook 5
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
J Outlook 365 Outlook Macro to Sort emails by column "Received" to view the latest email received Outlook VBA and Custom Forms 0
V How to use Comas in a picklist in Outlook forms Outlook VBA and Custom Forms 3
e_a_g_l_e_p_i Question about reinstalling Outlook 2021 Using Outlook 5
A Outlook 365 Outlook (part of 365) now working offline - argh Using Outlook 5
M Outlook Macro to save as Email with a file name format : Date_Timestamp_Sender initial_Email subject Outlook VBA and Custom Forms 0
G LinkedIn tab missing in Outlook 365 (but working in OWA) Using Outlook 0
Jay Freedman Outlook forgets "not junk" marking Using Outlook 0
KurtLass Opening Graphics Attachments in Outlook 2021 Using Outlook 0
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2
B Outlook config download Outlook VBA and Custom Forms 1
M Short term workaround for when Outlook searching stopped functioning Using Outlook 0
D Outlook 2016 Creating an outlook Macro to select and approve Outlook VBA and Custom Forms 0
L Fetch, edit and forward an email with VBA outlook Outlook VBA and Custom Forms 2
BartH VBA no longer working in Outlook Outlook VBA and Custom Forms 1
L Synch Outlook 365 calendar with iPhone Using Outlook 0
W Can vba(for outlook) do these 2 things or not? Outlook VBA and Custom Forms 2
S Outlook 2016 and Acrobat PDFMaker Office COM Addin Using Outlook 0
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
M Outlook 365 Rename Outlook Priority Using Outlook 3
R Outlook 2019 accesses POP3 but says its offline (because of IMAP servers?) Using Outlook 0
R Outlook Working off line Using Outlook 0
D Outlook 365 Custom forms field limit? Outlook VBA and Custom Forms 4
W Outlook 2016 MSI - Possible to make work with O365 modern Auth & Win7? Using Outlook 4
T Outlook roaming signatures Using Outlook 4
S Adding a recipient's column to Sent folder in Outlook 2010 Outlook VBA and Custom Forms 1
J Outlook search bar in Office 2021 Professional Using Outlook 1
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
C How to fix outlook continuing to prompt fo an Exchange password Using Outlook 0
C Outlook doesn't feel reliable, anymore Using Outlook 5
J Outlook 2016 Trying to get Outlook 2016 to work with Office 365 Using Outlook 0
C Outlook 365 Copy/Save Emails in Folder Outside Outlook to Show Date Sender Recipient Subject in Header Using Outlook 0
U Outlook not responding when trying to print Emails Using Outlook 6
O How to sync (one way) contacts between two Outlook (exchange) accounts? Using Outlook 0
S Sync Outlook (2021) tasks with Microsoft To Do Using Outlook 1
L Duplicate calendar entries in Outlook 365 Using Outlook 4
V Outlook 2021 Can anyone explain why my Outlook views keep changing?! Using Outlook 2
AlphonseG Outlook 365 Outlook Crashes on setting SaveSentMessageFolder Outlook VBA and Custom Forms 5

Similar threads

Top