Wizard-made C++ add-in plumbing code crashes (VS2005 SP1)

Hello,

I've already posted this on microsoft.public.vstudio.extensibility not knowing about this forum.
I'm a complete beginner about VS add-ins. Recently I tried to compile and run basic add-in code fresh off the wizard but the devenv.exe launched at debug time crashes right after the splash screen.
This however only happens with a C++ project (either ATL or CLR). The C# plumbing code runs fine, but my target is C++..

I noticed an odd thing in the Output window: one line is filled with %s ..perhaps indicative of some sort of buffer overflow due to some sprintf() kind of function

Here is a snippet:
[...]
'devenv.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.
%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s
%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s
%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s'devenv.exe': Loaded 'C:\WINDOWS
\system32\inetmib1.dll', No symbols loaded.
'devenv.exe': Loaded 'C:\WINDOWS\system32\iphlpapi.dll', No symbols loaded.
[...]
'devenv.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', No symbols loaded.
First-chance exception at 0x01b139ec in devenv.exe: 0xC0000096:
Privileged instruction.
First-chance exception at 0x01b13a27 in devenv.exe: 0xC000001D:
Illegal Instruction.
First-chance exception at 0x01b3049a in devenv.exe: 0xC0000005: Access
violation writing location 0x00000000.


I'm using Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) and .NET Framework Version 2.0.50727. The only additional extension I have running is Visual Assist X.
My VS is in English but my XP (SP2) is in Japanese. I don't know if this can be a problem..

Additionally, today I found and installed the "Automation Samples". Of those I tried GenerateHTML which crashes, but only if the provided executable is devenv.exe. It runs (almost) fine with devenv.com but that doesn't allow debugging. There is then a problem about the actual HTML code not being fully generated (stops at the header), but I don't know if that's related to the crash problem.

Thank you in advance,
Davide


Answer this question

Wizard-made C++ add-in plumbing code crashes (VS2005 SP1)

  • dr.acv

    I uninstalled Visual Assist X (as I didn't know how to stop it from loading in VS 2005 (the answer is here -> http://www.wholetomato.com/forum/topic.asp TOPIC_ID=5513 )) and the problem disappeared.
    I suppose then it's a Visual Assist X bug ( )

    Thank you,
    Davide

  • Wizard-made C++ add-in plumbing code crashes (VS2005 SP1)