A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook freezes on Redemption SaveAs



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 27th 06, 05:30 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Outlook freezes on Redemption SaveAs

Hi,

I have been using Outlook Redemption for about a year now and it's been
incredibly useful in the development of an add-in for Outlook
2K/XP/2003. I am trying to retrieve the e-mail (well actually, only the
recipients, body and attachments) that is being composed by the user
and export an RFC822 version of it.

For months my code was actually extracting the various parts of the
message I needed, reconstructing it using CDO (cdosys.dll), and getting
the RFC822 stream that CDO would provide. It worked "fairly" well
(considering the fact that I had to deal with different body formats,
different attachment types, etc.). But then I found out there was a
much easier way to do it: simply use the SaveAs() method of a
SafeMailItem object.

It litterally cut my code in half, it is much cleaner, faster,
efficient! But I recently found a bug I had never encountered with that
method. On two machines running Windows XP with Outlook 2000, calling
the SaveAs() method freezes Outlook -- we have to kill it using the
task manager. (The issue is not related specifically to either Windows
XP nor Outlook 2000, because it worked fine on other computers running
them.) It is also not an issue with filename or write permissions,
because I can OpenForOutput/Print/Close the same file in plain VB.

I know of a couple of ways to make Outlook or the add-in crash when
trying to save a MailItem (like using Outlook's built-in encryption,
and then trying to save it programmatically), but this one, I had never
encountered. I am now clueless about what I should do to fix this
issue. I don't want to have to go back to my old bulky code... What are
the possible reasons for this SaveAs() method to fail or to have a
similar behavior?

(I hope Dmitry Streblechenko sees this!)

Thanks!!

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook freezes on Redemption SaveAs [email protected] Add-ins for Outlook 5 April 28th 06 12:46 AM
Outlook calendar stops responding/freezes Jubee Outlook - Calandaring 0 April 10th 06 03:17 PM
Outlook Express 6 freezes when I begin to type a new message. PC User Outlook Express 1 January 14th 06 05:25 PM
Monthly calendar view freezes Outlook! Der_Techniker Outlook - Calandaring 1 January 12th 06 05:48 PM
my outlook express freezes Vern Outlook - Installation 3 January 10th 06 09:55 PM


All times are GMT +1. The time now is 12:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.