water Posted March 20, 2011 Share Posted March 20, 2011 (edited) Wooltown and I "brush up" the Outlook UDF. Now I've noticed a strange difference between Outlook 2002 (the one running in my office till a few days ago) and Outlook 2010 (the one running now in my office on Windows 7). If I opened Outlook using ObjCreate when Outlook wasn't running yet and immediately accessed a property in Outlook 2002 it was working fine. With Outlook 2010 I get Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)). If I Sleep() for a few seconds everything works fine again. So I get the impression that Outlook now does some of its startup asynchroniously. I've searched the internet high and low but couldn't find a single hint. Am I doing something wrong? Is there a way to check if Outlook has finished starting up so the "COM environment" is ready to use? Thanks for any support! Edited March 20, 2011 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
flyingboz Posted March 20, 2011 Share Posted March 20, 2011 Is there a way to check if Outlook has finished starting up so the "COM environment" is ready to use?Use the com error handler functionality to trap the error until it no longer appears. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
water Posted March 20, 2011 Author Share Posted March 20, 2011 Use the com error handler functionality to trap the error until it no longer appears.Thanks for the reply! That's what I was thinking of as well - but I hoped there was a more "elegant" method My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 20, 2011 Share Posted March 20, 2011 Blame Microsoft. That was a pretty poor design decision to load a library asynchronously. Link to comment Share on other sites More sharing options...
water Posted March 20, 2011 Author Share Posted March 20, 2011 OK, I'm going to blame M$ Do you think they will then solve the problem My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now