![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
|||
|
|||
![]()
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? |
#3
|
|||
|
|||
![]()
Thank you Ken,
but that are not good news because I have to create a lot objects. So i'm also making database transactions within the add-in. The recordsets have also to be crated with new. For that problem, what would be the better solution? Dim rst as New ADODB.Recordset or Dim rst as ADODB.Recordset Set rst = New ADODB Recordset |
#4
|
|||
|
|||
![]()
I don't think there's any difference between the two.
If you have to create objects and that's blocked there's not much I can tell you, that's a setting on the user's computer you'd have to work with. -- 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... Thank you Ken, but that are not good news because I have to create a lot objects. So i'm also making database transactions within the add-in. The recordsets have also to be crated with new. For that problem, what would be the better solution? Dim rst as New ADODB.Recordset or Dim rst as ADODB.Recordset Set rst = New ADODB Recordset |
#5
|
|||
|
|||
![]()
Thank you Ken!
I think I included all workarounds of getting the common Add-In problems. And now I don't know how to make it better. (I checked the code for so many times without finding an error) My Add-In does a lot and maybe I have to live with problems, because the whole COM thing is buggy and can cause many problems. Another question: Sometimes I have to depend on the error handling because some objects are causing errors but only in really rare cases which I don't know. (Normally I don't get errors, when I uncomment the error handling) Although I'm using "On error goto... or ...resume next" an error can cause an Outlook crash? |
#6
|
|||
|
|||
![]()
It depends on what error and where it came from. I've found errors fired by
embedded Web browser controls used in some Outlook projects that will fire errors that can't be trapped from VB or Outlook, they are Windows unhandled exceptions and there's not much you can do with that. -- 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... Thank you Ken! I think I included all workarounds of getting the common Add-In problems. And now I don't know how to make it better. (I checked the code for so many times without finding an error) My Add-In does a lot and maybe I have to live with problems, because the whole COM thing is buggy and can cause many problems. Another question: Sometimes I have to depend on the error handling because some objects are causing errors but only in really rare cases which I don't know. (Normally I don't get errors, when I uncomment the error handling) Although I'm using "On error goto... or ...resume next" an error can cause an Outlook crash? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Redemption Doesn't ByPass Outllok 2003 Security | zbud | Add-ins for Outlook | 15 | February 1st 06 06:59 PM |
Appointment RTF format problems using Redemption | John Svercek | Add-ins for Outlook | 1 | January 15th 06 11:41 PM |
Redemption MAPITable | Dmitry Streblechenko | Add-ins for Outlook | 1 | January 12th 06 05:09 AM |