water 2,409 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
flyingboz 2 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. Share this post Link to post Share on other sites
water 2,409 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Richard Robertson 187 Posted March 20, 2011 Blame Microsoft. That was a pretty poor design decision to load a library asynchronously. Share this post Link to post Share on other sites
water 2,409 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites