Activesync and startup problems

J

JoBless

Hi.

I've developed a com add-in for outlook, based on a microeye template. It
works great, and releases all objects, with no shutdown-problems.

Now i've tested it on a activesync environment, and I get the same problem
as everybody else, activesync initializes an instance of outlook, and my
buttons don't show up. I've then searched google, and found the
addinmon.exe, which i try to implement.

My AddinInstance_OnConnection:

Private Sub AddinInstance_OnConnection(ByVal Application As Object, _
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, _
ByVal AddInInst As Object, custom() As Variant)
Dim lngPID As Long
Dim lngThreadID As Long

'On Error Resume Next

If Application.Explorers.Count > 0 Then 'Outlook launched with UI
'Create and Initialize a base class or write your Initialization
code here
UI = True
gBaseClass.InitHandler Application, AddInInst.ProgId
Else 'Outlook launched without UI
'Get Outlook ProcessID (same as current process ID since Add-In runs
in-process
lngPID = GetCurrentProcessId
lngThreadID = GetCurrentThreadId
If IsAddInMonProcess = False Then
'Launch AddInMonitor, supplying Add-In ProgID, Outlook PID,
ThreadID
Shell App.Path & "\AddInMon.exe /n " & AddInInst.ProgId _
& " /p " & lngPID & " /t " & lngThreadID
End If
End If
End Sub


When I start outlook without UI (rightclick a file, and select sendto
mail.....), it fires, and addinmon is executed.

I'm using the WriteDiagnostics, and get a logfile:
07-04-2004 11:21:04: AddInMon initialized name = G2Outlook.Connect interval
= 500 milliseconds; PID = 3352; ThreadID = 612; Version = 1.0.2104
07-04-2004 11:21:04: DisconnectAddin - G2Outlook.Connect
07-04-2004 11:21:11: Outlook process closed. PID = 3352
07-04-2004 11:21:11: AddInMon shutting down.

But here comes the problem:

When I've done this (executed outlook without UI), the com add-in gets
disabled inside outlook. It's not in the disabled items, but just disabled
like manually disabling the com add-in.

What have I done wrong here?

Regards

JoBless
 
K

Ken Slovak - [MVP - Outlook]

Are you using the latest version of AddInMon? We modified it recently for
better compatibility with how Outlook 2003 treats Outlook instances started
by software such as ActiveSynch.

One thing we discovered was a bug in AddInMon that disabled some addins
using it by setting LoadBehavior = 2 under certain circumstances such as
when an instance of Outlook was started first with no UI. The latest version
of AddInMon has a file date of March 4, 2004.
 
J

JoBless

I'm using the AddInMon downloaded today (fileversion 1.00.2104)

I'm using outlook 2002, and I've tried using LoadBehavior = 2 and
LoadBehavior = 3, with same result.

Regards

JoBless
 
D

David Kane

I don't think this anything you are doing, it looks to me like we have a bug
in AddInMon. Look for an update to be posted shortly.

Regards,

David Kane
Micro Eye, Inc.
 
J

JoBless

Thanks for answering.

When do you expect the update to be released?

If you'd like, I could test the new version for You.

Regards

JoBl ess

David Kane said:
I don't think this anything you are doing, it looks to me like we have a bug
in AddInMon. Look for an update to be posted shortly.

Regards,

David Kane
Micro Eye, Inc.
JoBless said:
I'm using the AddInMon downloaded today (fileversion 1.00.2104)

I'm using outlook 2002, and I've tried using LoadBehavior = 2 and
LoadBehavior = 3, with same result.

Regards

JoBless


"Ken Slovak - [MVP - Outlook]" <[email protected]> skrev i en meddelelse
Are you using the latest version of AddInMon? We modified it recently for
better compatibility with how Outlook 2003 treats Outlook instances started
by software such as ActiveSynch.

One thing we discovered was a bug in AddInMon that disabled some addins
using it by setting LoadBehavior = 2 under certain circumstances such as
when an instance of Outlook was started first with no UI. The latest version
of AddInMon has a file date of March 4, 2004.




Hi.

I've developed a com add-in for outlook, based on a microeye
template.
It
works great, and releases all objects, with no shutdown-problems.

Now i've tested it on a activesync environment, and I get the same problem
as everybody else, activesync initializes an instance of outlook,
and
 
D

David Kane

We posted the update (v. 1.0.2105) this morning. I think that bug is pretty
well squashed, but let us know directly if you find otherwise
([email protected])

Regards,

Dave


JoBless said:
Thanks for answering.

When do you expect the update to be released?

If you'd like, I could test the new version for You.

Regards

JoBl ess

David Kane said:
I don't think this anything you are doing, it looks to me like we have a bug
in AddInMon. Look for an update to be posted shortly.

Regards,

David Kane
Micro Eye, Inc.
JoBless said:
I'm using the AddInMon downloaded today (fileversion 1.00.2104)

I'm using outlook 2002, and I've tried using LoadBehavior = 2 and
LoadBehavior = 3, with same result.

Regards

JoBless


"Ken Slovak - [MVP - Outlook]" <[email protected]> skrev i en meddelelse
Are you using the latest version of AddInMon? We modified it
recently
for
better compatibility with how Outlook 2003 treats Outlook instances
started
by software such as ActiveSynch.

One thing we discovered was a bug in AddInMon that disabled some addins
using it by setting LoadBehavior = 2 under certain circumstances
such
Object,
AddInInst.ProgId
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top