Although that was the lazy coder way. If the code will run in a loop or
where you need to release things as needed you're better off breaking this
line with all the dot operators into component parts with explicit objects
you can deterministically release as needed:
_mail.Recipients[1].AddressEntry.SMTPAddress
You'd instantiate explicit RDORecipients, RDORecipient and RDOAddressEntry
objects.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"BVM" wrote in message
...
Thanks, it works better.