Add-in caused access violation while sinking event
Two weeks ago I started working on a VS 2005 add-in using C#. When I
found out I could do the same work using macros instead of a C#
project, I deleted the project and began work on the macros. At the
end of the day, the macros were not in a compilable state, but I
thought it would not be a problem. Since that, however, day Visual
Studio has been giving me an error "An Add-in has caused an access
violation while sinking on 'ProjectRemoved'" whenever I close it. I
have removed all macros and macro modules from VS, but I still get the
error. I have even gone so far as to delete all instances of the
source and binary files related to both the macros and C# project to
no effect.
I thought I would try and find where VS is getting this error by
running VS under WinDBG; a portion of the output is included below. I
can find references to the GUID {5EFC7975-14BC-11CF-9B2B-00AA00573819}
online and in various Visual Studio configuration files -- it appears
to be an analog for the WM_COMMAND windows message -- but I can't find
anything for {1E58696E-C90F-11D2-AAB2-00C04F688DDE}. Also, I don't
seem to see a first-chance exception for when the add-in causes the
access violation, so it looks like I've hit a dead end.
Can anybody provide a hint about how to fix this problem?
---------- Begin Include ----------
[SNIP]
ModLoad: 50ce0000 50d46000 C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\vsmacros.dll
ModLoad: 51570000 51585000 C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\1033\vsmacrosui.dll
AddKeyBinding: Command does not exist!
Guid,cmdid = {1E58696E-C90F-11D2-AAB2-00C04F688DDE},1
CommandName = (unknown)
m1,k1 = 0,117
m2,k2 = 0,0
Editor = {5EFC7975-14BC-11CF-9B2B-00AA00573819}AddKeyBinding: Command
does not exist!
Guid,cmdid = {1E58696E-C90F-11D2-AAB2-00C04F688DDE},2
CommandName = (unknown)
m1,k1 = 4,117
m2,k2 = 0,0
Editor = {5EFC7975-14BC-11CF-9B2B-00AA00573819}AddKeyBinding: Command
does not exist!
Guid,cmdid = {1E58696E-C90F-11D2-AAB2-00C04F688DDE},3
CommandName = (unknown)
m1,k1 = 5,86
m2,k2 = 0,0
Editor = {5EFC7975-14BC-11CF-9B2B-00AA00573819}AddKeyBinding: Command
does not exist!
Guid,cmdid = {1E58696E-C90F-11D2-AAB2-00C04F688DDE},4
CommandName = (unknown)
m1,k1 = 6,117
m2,k2 = 0,0
Editor = {5EFC7975-14BC-11CF-9B2B-00AA00573819}AddKeyBinding: Command
does not exist!
Guid,cmdid = {1E58696E-C90F-11D2-AAB2-00C04F688DDE},5
CommandName = (unknown)
m1,k1 = 2,117
m2,k2 = 0,0
Editor = {5EFC7975-14BC-11CF-9B2B-00AA00573819}AddKeyBinding: Command
does not exist!
Guid,cmdid = {1E58696E-C90F-11D2-AAB2-00C04F688DDE},6
CommandName = (unknown)
m1,k1 = 5,67
m2,k2 = 0,0
Editor = {5EFC7975-14BC-11CF-9B2B-00AA00573819}ModLoad: 5b400000
5b43b000 C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages
\1033\vcpkgui.dll
ModLoad: 59600000 5960e000 C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\PrivateAssemblies
\1033\Microsoft.VisualStudio.EnterpriseTools.ClassDesignerUI.dll
ModLoad: 5f260000 5f295000 C:\Program Files\Microsoft Visual Studio
8\Crystal Reports\resources\1033\CRDesignerUI.dll
[SNIP]
---------- End Include ----------
date: Mon, 11 Feb 2008 07:22:05 -0800 (PST)
author: unknown