Monday, February 28, 2011

VS2010 crashes when editing

Problem: VS2010 crashes the instance you enter a character or paste text into a source file. The message displayed (sometimes - other times VS2010 simply dies and disappears without further notice) is:

Visual Studio has encountered an exception. This may be caused by an extension. You can get more information by running the application together with the /log parameter on the command line, and then examining the file 'C:\Users\USERNAME\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml'

Solution: The solution was found in this forum, which states:
It appears to be due to missing registry information. Adding the default value to the below registry key solved the problem.
On 32-Bit Windows: [HKEY_CLASSES_ROOT\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]
On 64-Bit Windows: [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]
The "(Default)" value should be one of the following:On 32-Bit Windows: "C:\Program Files\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"
On 64-Bit Windows: "C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"


Htain Linn Htoo said...

thank million. :)

Anonymous said...

the using of VCexprese.exe /log is usless (2 red lines in the xml log file produced, saying nothing for common of mortals) but this way worked :
for newbies, in command DOS window, type regedit.exe, then follow the first path([HKEY....], and click on "default" file and paste the 2nd path
VCexpress10, win7

BTW : the problem occured after (probably) the installation of allegro library, but it seems to be inherent to VC ; directX SDK installation have succeed in VC
bbye and thank you for this solution from all ppl that it has helped or will help and who won't post answer ;)

ZerApiO said...

Oh, the joy. Thanks for this tip. I have a feeling this started happening after installing a couple of extensions (Productivity Power Tools and VSCommands 2010)

Velika Kvota said...

Thanks!! :D