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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Catastrophic Failure while accessing Redemption.SafeMailItem.To and Recipients



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 30th 06, 08:45 AM posted to microsoft.public.outlook.program_vba
jisha
external usenet poster
 
Posts: 1
Default Catastrophic Failure while accessing Redemption.SafeMailItem.To and Recipients

Hi,
I have a C# application in which I am using Redemption.dll version 4.
0.0.452.In this application I am trying to access Outlook 2003 MailItem, by
setting that item as Redemption.SafeMailItem (sMailItem) .Trying to access
sMailItem.To and later i am accessing Redemption.Recipient address.At that
point this is sometimes giving Catastrophic Error(details below).Can you tell
me why this is happening ? What is the solution?
Error details

“Details : Catastrophic failure
At Redemption.SafeMailItemClass.get_To()”
Ads
  #2  
Old June 30th 06, 05:48 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Catastrophic Failure while accessing Redemption.SafeMailItem.To and Recipients

Try to create and instantiate a global (class) variable that points to a
Redemption object - any object, such as Redemption.MAPIUtils.
Based on the source code that you sent to my private e-mail address, you
loop through multiple messages in Outlook and process them using
SafeMailItem.
Every Safe*Item (and MAPIUtils) object calls MAPIInitialize when created and
MAPIUninitialize when destroyed. Due to a bug in MAPI, calling
MAPIInitialize/MAPIUninitialize a few hundred times results in an error.
Having a global Redemption object ensures that MAPI is initialized only
once.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"jisha" u23608@uwe wrote in message news:62893529f8b54@uwe...
Hi,
I have a C# application in which I am using Redemption.dll version
4.
0.0.452.In this application I am trying to access Outlook 2003 MailItem,
by
setting that item as Redemption.SafeMailItem (sMailItem) .Trying to access
sMailItem.To and later i am accessing Redemption.Recipient address.At that
point this is sometimes giving Catastrophic Error(details below).Can you
tell
me why this is happening ? What is the solution?
Error details

"Details : Catastrophic failure
At Redemption.SafeMailItemClass.get_To()"



 




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
Delivery Failure Notices gayle Outlook - General Queries 1 April 19th 06 01:44 AM
sudden pop3 in and out failure Docmoney Outlook - Installation 0 April 2nd 06 04:15 PM
hyperlink failure Popster Outlook - Installation 1 February 28th 06 07:20 PM
failure notice lcnlit Outlook Express 5 January 20th 06 03:09 PM
IE failure on PDF files Desikan Srinivasan Outlook Express 2 January 8th 06 11:33 AM


All times are GMT +1. The time now is 07:25 PM.


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