![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have an Outlook COM AddIn that has been working fine with Outlook XP
and Outlook 2003. However, I have recently updated my Outlook 2003 (to version 11.8002.6568 SP2) and now I am experiencing some problems. Basically, the latest update appears to send an Inspector Close event to the addin when a Send is Cancelled - this didn't happen with previous versions. Because I have code in the Inspector Close that tidies up and releases the advise sinks on the Inspector/MailItem objects, when this scenario occurs my code no longer runs for that Inspector. The problem can be repro'ed using Outlook Spy using the following steps - create a new message - select the Inspector button from the Outlook Spy toolbar - click on the Events tab and ensure the 'Close' event is checked - go back to the draft message and enter a non-resolvable recip (some random text will do) - send the message, Outlook will display the "Check Names" dialog to say that the recipient could not be found - when you cancel this dialog, you will then see the 'Close' event fire in the "Inspector" window - none of the Outlook Spy toolbar buttons now function Does anyone know a way around this problem? Should I be doing the tidying/releasing during some other event? I think I tried to do it in the MailItem Close event but had similar problems when sends/saves were cancelled Thanks Steve |
Ads |
#2
|
|||
|
|||
![]()
Just as an aside to this - I have also tried trapping the Deactivate
event and then looping through the Inspectors collection to see if "this" inspector is still present in the collection, and if its not then I run the tidy code. Unfortunately, there was some bizarre behaviour (that I can't quite remember) which made it unworkable Steve |
#3
|
|||
|
|||
![]()
This has been reproduced and reported to MS as a bug from that hotfix.
We're trying to find out if a later hotfix might have fixed this, or if not, when it's scheduled to be fixed. In the meantime, you can remove that hotfix from Add/Remove Programs in the Control Panel. It's 892843. It also causes other problems it seems, with accepting task requests and with using the Folder argument in CreateItemFromTemplate. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Steve D" wrote in message oups.com... I have an Outlook COM AddIn that has been working fine with Outlook XP and Outlook 2003. However, I have recently updated my Outlook 2003 (to version 11.8002.6568 SP2) and now I am experiencing some problems. Basically, the latest update appears to send an Inspector Close event to the addin when a Send is Cancelled - this didn't happen with previous versions. Because I have code in the Inspector Close that tidies up and releases the advise sinks on the Inspector/MailItem objects, when this scenario occurs my code no longer runs for that Inspector. The problem can be repro'ed using Outlook Spy using the following steps - create a new message - select the Inspector button from the Outlook Spy toolbar - click on the Events tab and ensure the 'Close' event is checked - go back to the draft message and enter a non-resolvable recip (some random text will do) - send the message, Outlook will display the "Check Names" dialog to say that the recipient could not be found - when you cancel this dialog, you will then see the 'Close' event fire in the "Inspector" window - none of the Outlook Spy toolbar buttons now function Does anyone know a way around this problem? Should I be doing the tidying/releasing during some other event? I think I tried to do it in the MailItem Close event but had similar problems when sends/saves were cancelled Thanks Steve |
#4
|
|||
|
|||
![]()
Further testing reveals this problem only occurs if using the Outlook email
editor, not with WordMail. MS is working on a hotfix for this bug. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Ken Slovak - [MVP - Outlook]" wrote in message ... This has been reproduced and reported to MS as a bug from that hotfix. We're trying to find out if a later hotfix might have fixed this, or if not, when it's scheduled to be fixed. In the meantime, you can remove that hotfix from Add/Remove Programs in the Control Panel. It's 892843. It also causes other problems it seems, with accepting task requests and with using the Folder argument in CreateItemFromTemplate. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm |
#5
|
|||
|
|||
![]()
Thanks for the info Ken
Steve |
#6
|
|||
|
|||
![]()
I'm also looking for a workaround, since this will impact some code projects
of my own and you can never depend on users to have the latest update, even if it's eventually released on Office Update. I'll post back here when I hear about the QFE or I find a usable workaround. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Steve D" wrote in message oups.com... Thanks for the info Ken Steve |
#7
|
|||
|
|||
![]()
I did a workaround whereby in the Inspector Close event, I checked
whether the Inspector was still in the Inspectors collection and it it wasn't then I'd do the tidying up. This appeared to work ok for all versions of Outlook I tried it on (XP, 2003 with and without this 'patch'), but I've not tested it extensively. Steve |
#8
|
|||
|
|||
![]()
That might vary depending on if Outlook 2000 was being used and also if an
Inspector wrapper class and collection are being used, which I use a lot. And I have to support Outlook 2000. I was thinking of that or possibly a flag set in Item.Send when canceling. That could be checked in Inspector.Close as well as other procedures like timer events. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Steve D" wrote in message oups.com... I did a workaround whereby in the Inspector Close event, I checked whether the Inspector was still in the Inspectors collection and it it wasn't then I'd do the tidying up. This appeared to work ok for all versions of Outlook I tried it on (XP, 2003 with and without this 'patch'), but I've not tested it extensively. Steve |
#9
|
|||
|
|||
![]()
The fix I coded used a flag and a timer. I needed to do some work in
Inspector.Close but only after a few other things were done. So in Item.Send I set a Boolean flag and at the top of Inspector.Close I test for that flag. If True I just exit that event handler. A timer fires 500 ms after leaving Item.Close and makes some procedure calls to do some things and then clears the flag and explicitly closes the Inspector. Since the flag is clear the cleanup code in Inspector.Close did it's work. This seems to have worked around the bug. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Ken Slovak - [MVP - Outlook]" wrote in message ... That might vary depending on if Outlook 2000 was being used and also if an Inspector wrapper class and collection are being used, which I use a lot. And I have to support Outlook 2000. I was thinking of that or possibly a flag set in Item.Send when canceling. That could be checked in Inspector.Close as well as other procedures like timer events. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 does not close down correctly.. No info why | SusanDes | Outlook - Installation | 1 | February 20th 06 07:01 PM |
Cannot close archive.pst folder in Outlook 2003 | Clark | Outlook - General Queries | 2 | January 31st 06 08:27 AM |
Outlook shows all future appointments as cancelled.. | axn | Outlook - Calandaring | 0 | January 23rd 06 01:07 PM |
how to add commandbarbutton to inspector window | Ram | Add-ins for Outlook | 0 | January 18th 06 03:18 PM |
Purging cancelled meeting requests from Outlook calendar | dginsf | Outlook - Calandaring | 1 | January 18th 06 01:41 PM |