Thread: Redemption
View Single Post
  #2  
Old March 3rd 06, 02:18 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Redemption

If you have to create an object and some script blocker blocks that the
alternatives are to disable the script blocker or tell it to trust your
application, if that can be done with that script blocker. CreateObject
might possibly work better than New but it might not.

--
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


"Christoph" wrote in message
ups.com...
I wrote a COM Add-In, which works fine normally, but crashes on some
machines or it has the Resiliency Problem.

Therefore i'm asking if I'm doing everything right.

For example:

Private obCalendarItem As Object
Private moCalendarItem As Object
...
Private Sub moCalendarItems_ItemAdd(ByVal Item As Object)
Set obCalendarItem = Item
Set moCalendarItem = New Redemption.SafeAppointmentItem
moCalendarItem.Item = obCalendarItem
End Sub
...
At Explorer_Close and On_Disconnection I set these Objects to Nothing


I read, that Redemption can cause problems and can be solved with:
set Utils = CreateObject("Redemption.MAPIUtils")
Utils.Cleanup

But I also read, that CreateObject is responsibile to the Resiliency
problem because of script stoppers.

What can i do?


Ads