Alejandro Bologna

I've created a managed extension addin for Outlook in C#, and then used the COM Shim Wizard to create the unmanaged shim.

I registered the dlls, and the addin loads in Outlook fine.
The problem is that when I run Outlook using the Application Verifier tool (with the "Basics" options enabled), I get a first chance exception (see stack trace dump)

Both the managed extension Addin and the COM Shim were created from the VS Wizards and compiled, with no code modification.

Does anyone know about this problem, and its posible solution/workaround


From Application Verifier Log:

< xml version="1.0" encoding="UTF-8" standalone="no" >
<avrf:logfile xmlns:avrf="Application Verifier">
<avrf:logSession TimeStarted="2006-11-24 : 15:43:22" PID="2928" Version="1">
<avrf:logEntry Time="2006-11-24 : 15:43:45" LayerName="Heaps" StopCode="0x13" Severity="Error">
<avrf:message>First chance access violation for current stack trace.</avrf:message>
<avrf:parameter1>3db0fc0 - Invalid address causing the exception.</avrf:parameter1>
<avrf:parameter2>3004e2f7 - Code address executing the invalid access.</avrf:parameter2>
<avrf:parameter3>13f7a4 - Exception record.</avrf:parameter3>
<avrf:parameter4>13f7c0 - Context record.</avrf:parameter4>
<avrf:stackTrace>
<avrf:trace>vrfcore!VfCoreRedirectedStopMessage+81</avrf:trace>
<avrf:trace>vfbasics!VfBasicsStopMessage+1c9</avrf:trace>
<avrf:trace>vfbasics!AVrfpCheckFirstChanceException+139</avrf:trace>
<avrf:trace>vfbasics!AVrfpVectoredExceptionHandler+18</avrf:trace>
<avrf:trace>ntdll!RtlInitializeSListHead+9dbf</avrf:trace>
<avrf:trace>ntdll!LdrAddRefDll+1c1</avrf:trace>
<avrf:trace>ntdll!KiUserExceptionDispatcher+e</avrf:trace>
<avrf:trace>OUTLLIB!FStoreSupportsUnicode+151</avrf:trace>
<avrf:trace>OUTLLIB!DllCanUnloadNow+11af5</avrf:trace>
<avrf:trace>mscorwks!GetCompileInfo+277d9</avrf:trace>
<avrf:trace>mscorwks!GetCompileInfo+3151f</avrf:trace>
<avrf:trace>mscorwks!GetCompileInfo+31550</avrf:trace>
<avrf:trace>mscorwks!GetCompileInfo+314b5</avrf:trace>
<avrf:trace>mscorwks!GetCompileInfo+3175c</avrf:trace>
<avrf:trace>mscorwks!GetCompileInfo+30d02</avrf:trace>
<avrf:trace>mscorwks!GetCompileInfo+30c84</avrf:trace>
<avrf:trace>mscorwks!GetCompileInfo+378d0</avrf:trace>
<avrf:trace>mscorwks!CoEEShutDownCOM+105</avrf:trace>
<avrf:trace>mscorwks!CoEEShutDownCOM+2c</avrf:trace>
<avrf:trace>mscoree!CorExitProcess+45</avrf:trace>
<avrf:trace>MSVCRT!strerror+2b42</avrf:trace>
<avrf:trace>MSVCRT!initterm+111</avrf:trace>
<avrf:trace>MSVCRT!exit+12</avrf:trace>
<avrf:trace>OUTLOOK!+300012ea</avrf:trace>
<avrf:trace>kernel32!RegisterWaitForInputIdle+49</avrf:trace>
</avrf:stackTrace>
</avrf:logEntry>
</avrf:logSession>
</avrf:logfile>



Re: Visual Studio Tools for Office COM Shim Addin not working in Outlook with Application Verifier

Andrew Whitechapel - MSFT

Please supply more information:

Which version of the COM Shim Wizards are you using

Which version of Outlook





Re: Visual Studio Tools for Office COM Shim Addin not working in Outlook with Application Verifier

Andrew Whitechapel - MSFT

There's been no response for some time, so I'm guessing you've resolved the issues.

Also, btw, you're likely to get a number of AppVerifier errors when you run any Office application, regardless of what add-ins may or may not be loaded, with or without shims.