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" <c.jarisch[ at ]csdit.com> wrote in message news:1141385177.473855.80370[ at ]i39g2000cwa.googlegroups.com...
[Quoted Text] >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? >
|