Error when closing Outlook

Add-in Express™ Support Service
That's what is more important than anything else

Error when closing Outlook
 
logikonline




Posts: 35
Joined: 2006-04-14
I am not sure how to reproduce in a sample project - but the following now occurs after upgrading to the new version. I have pasated the error below - but it occurs once I load a Form in a subpane which has controls on it. I can't seem to catch this in any event.

regards,
Dave


Detailed technical information follows:
---

Application Domain: C:\Solutions\eActivated\WinApps\CM\bin\
Assembly Codebase: file:///c:/windows/assembly/gac/addinexpress.ol.2003/3.3.905.2003__e69a7e0f3592d2b8/addinexpress.ol.2003.dll
Assembly Full Name: AddinExpress.OL.2003, Version=3.3.905.2003, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version: 3.3.905.2003
Assembly Build Date: 6/24/2002 1:06:46 AM

Exception Source: mscorlib
Exception Type: System.Runtime.InteropServices.InvalidComObjectException
Exception Message: COM object that has been separated from its underlying RCW can not be used.
Exception Target Site: InvokeDispMethod

---- Stack Trace ----
System.RuntimeType.InvokeDispMethod(name As String, invokeAttr As BindingFlags, target As Object, args As Object[], byrefModifiers As Boolean[], culture As Int32, namedParameters As String[])
addinexpress.ol.2003.dll: N 00000 (0x0) JIT
System.RuntimeType.InvokeMember(name As String, invokeAttr As BindingFlags, binder As Binder, target As Object, args As Object[], modifiers As ParameterModifier[], culture As CultureInfo, namedParameters As String[])
addinexpress.ol.2003.dll: N 00473 (0x1D9) JIT
AddinExpress.OL.OutlookUtils.GetExplorerCaption(ExplorerObj As Object)
addinexpress.ol.2003.dll: N 00076 (0x4C) JIT


Posted 28 Mar, 2007 12:50:29 Top
logikonline




Posts: 35
Joined: 2006-04-14
I have an update... it only occurs in Outlook2007 clients. my 2003 clients do not receive the error.
Posted 28 Mar, 2007 14:15:36 Top
Fedor Shihantsov


Guest


Hi,

Do you use Marshal.ReleaseComObject for the ADXOlForm.ExplorerObj property in someplace your code?

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 29 Mar, 2007 02:43:13 Top
logikonline




Posts: 35
Joined: 2006-04-14
I use it in the FindSelectionChange and DoSelection

Dim ActiveExplorer As Outlook.Explorer = OutlookApp().ActiveExplorer()
Dim SelItem As Outlook.Selection = ActiveExplorer.Selection
If (SelItem.Count > 0) Then
CurrentItem = SelItem.Item(1)
Marshal.ReleaseComObject(SelItem)
Marshal.ReleaseComObject(ActiveExplorer)
End If

Is this wrong? I thought I was supposed to release com objects after assigning them to objects.

regards,
Dave
Posted 29 Mar, 2007 10:48:18 Top
Fedor Shihantsov


Guest


> Is this wrong?
No, You are right.

I have changed code that called GetExplorerCaption.
This fix wil be available in the next release.
Posted 30 Mar, 2007 08:28:42 Top
logikonline




Posts: 35
Joined: 2006-04-14
do you know when that will be? I need to inform my customers - as I can not release it until then. Is this in April?
Posted 30 Mar, 2007 13:16:11 Top
Fedor Shihantsov


Guest


We are planning the public release on April 2.
Posted 31 Mar, 2007 06:11:50 Top
Fedor Shihantsov


Guest


Sorry, on May 1
Posted 31 Mar, 2007 06:13:59 Top
logikonline




Posts: 35
Joined: 2006-04-14
Can you please give me an update? I have customers who I give dates too - then miss them waiting for a release. SInce I can not re-release my app when it crashes their Outlook.
Posted 08 May, 2007 00:06:50 Top
Fedor Shihantsov


Guest


Dave,

I have sent an email for your. Please look your inbox.
Posted 08 May, 2007 06:03:28 Top