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

Redemption



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 3rd 06, 12:26 PM posted to microsoft.public.outlook.program_addins
Christoph
external usenet poster
 
Posts: 6
Default Redemption

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  
Old March 3rd 06, 03: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?


  #3  
Old March 3rd 06, 05:04 PM posted to microsoft.public.outlook.program_addins
Christoph
external usenet poster
 
Posts: 6
Default Redemption

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  
Old March 3rd 06, 10:40 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Redemption

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  
Old March 6th 06, 10:16 AM posted to microsoft.public.outlook.program_addins
Christoph
external usenet poster
 
Posts: 6
Default Redemption

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  
Old March 6th 06, 04:26 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Redemption

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


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


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.