|
Can anyone please reproduce and confirm this?
Create a new project, make it a C# console application, use all default settings. Open the generated "Program.cs" file and replace its contents with the following:
namespace ConsoleApplication1
{
public class ParameterAttribute: System.Attribute
{
}
class Program
{
[Parameter( name:"name1" )]
int Field1;
static void Main( string[] args )
{
}
}
}
I know, there is an error in the code. Please bear with me. Just do the following: move the mouse pointer over the word "name" in the code, and click. In other words, place the caret in "name". Does anything happen? Cause when I do that, Visual Studio 2010 disappears without even saying good bye. It panic-quits.
More information: I am on Win7 x64 SP1, and this is what I get from Visual Studio / Help / About / Copy Info:
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.5.50709 SP1Rel
Installed Version: Ultimate
Microsoft Visual C# 2010 01019-532-2002102-70075
Microsoft Visual C# 2010
Microsoft Visual C++ 2010 01019-532-2002102-70075
Microsoft Visual C++ 2010
Microsoft Visual F# 2010 01019-532-2002102-70075
Microsoft Visual F# 2010
Microsoft Visual Studio 2010 Architecture and Modeling Tools 01019-532-2002102-70075
Microsoft Visual Studio 2010 Architecture and Modeling Tools
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.
Microsoft Visual Studio 2010 Code Analysis Spell Checker 01019-532-2002102-70075
Microsoft Visual Studio 2010 Code Analysis Spell Checker
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Microsoft Visual Studio 2010 Team Explorer 01019-532-2002102-70075
Microsoft Visual Studio 2010 Team Explorer
Microsoft Visual Web Developer 2010 01019-532-2002102-70075
Microsoft Visual Web Developer 2010
Crystal Reports Templates for Microsoft Visual Studio 2010
Crystal Reports Templates for Microsoft Visual Studio 2010
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.40219
Microsoft Visual Studio 2010 SharePoint Developer Tools
Microsoft Visual Studio 2010 Ultimate - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.
modified 29-May-13 3:35am.
|
|
|
|
|
Ohhhhhhhh hope you are wearing your asbestos pants... this looks suspiciously like a programming question in the lounge!!
|
|
|
|
|
No, it is not a programming question, it is an incitement for a technical discussion, which, according to the launge rules, is not only allowed, but encouraged even.
|
|
|
|
|
There is a forum for Visual Studio questions, and this is not it.
Use the best guess
|
|
|
|
|
Uh-oh, I did not see that. In this case I hope someone will move it there.
|
|
|
|
|
 Worked ok for me:
New instance VS2010, (Pro, V 10.0.40219.1 SP1Rel)
"About" Info:
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.5.50709 SP1Rel
Installed Version: Professional
Microsoft Office Developer Tools 01018-532-2002102-70650
Microsoft Office Developer Tools
Microsoft Visual Basic 2010 01018-532-2002102-70650
Microsoft Visual Basic 2010
Microsoft Visual C# 2010 01018-532-2002102-70650
Microsoft Visual C# 2010
Microsoft Visual C++ 2010 01018-532-2002102-70650
Microsoft Visual C++ 2010
Microsoft Visual F# 2010 01018-532-2002102-70650
Microsoft Visual F# 2010
Microsoft Visual Studio 2010 Team Explorer 01018-532-2002102-70650
Microsoft Visual Studio 2010 Team Explorer
Microsoft Visual Web Developer 2010 01018-532-2002102-70650
Microsoft Visual Web Developer 2010
Add Reference Dialog Plus! 1.0
An significantly enhanced Add Reference dialog for managed code projects.
AlignAssignments 1.0
Command for aligning assignments.
Collapse Selected Nodes in Solution Explorer 1.0
Recursively collapses selected nodes in the Solution Explorer tool window.
Crystal Reports Templates for Microsoft Visual Studio 2010
Crystal Reports Templates for Microsoft Visual Studio 2010
Document Well 2010 Plus 1.0.10916.0
This package provides configurable behavior for the Document Well and its tabs. Please be sure to let us know what you like/dislike about this extension.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2529927) KB2529927
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2529927.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2542054) KB2542054
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2542054.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2548139) KB2548139
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2548139.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2549864) KB2549864
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2549864.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2635973) KB2635973
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2635973.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2736182) KB2736182
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2736182.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2813041) KB2813041
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2813041.
Indent Guides 12.1
Indent Guides
Adds visual guides at each indentation level.
Microsoft SQL Server Data Tools 10.3.20225.0
Microsoft SQL Server Data Tools
Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.40219
Microsoft Visual Studio 2010 SharePoint Developer Tools
Microsoft.VisualStudio.QuickAccess.Package 1.0
Awesome search bar.
OptionsPageImpl 1.0
Information about my package
Perspectives 1.0
Allows for view, changing and saving window perspectives.
QuickFind 1.0
Visual Studio 2010 Quick Incremental Find Extension
Security Update for Microsoft Visual Studio 2010 Professional - ENU (KB2645410) KB2645410
This security update is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2645410.
Solution Load Manager 1.0
Change default project load priority to optimize solution loading.
VSNomad.Project 1.0.1.71
VS Nomad allows you to develop cross-platform mobile apps in Visual Studio
Xamarin.Android 4.6.00049 (0e0e51f9)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 1.0.897 (b4c50138)
Visual Studio extension to enable development for Xamarin.iOS
Win7 64 bit, SP1
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
Thank you very much.
It looks like I should be installing all those updates!
|
|
|
|
|
Harold aptroot wrote further down: "Confirmed. The space before "name" was crucial and I had to edit it back in, so you may get some false negatives."
So, did you try it with, or without a space before "name" ?
|
|
|
|
|
Copy 'n' paste from your original post, so the space would have been there.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
Interesting one for you: I just tried it again, with a new project, pasted your code in.
The space disappeared (I assume intellisense autoformatted it out when I pasted to fit my settings)
Crashed this time.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
|
 Crashed - Debug info
System.AccessViolationException was unhandled
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=Microsoft.VisualStudio.CSharp.Services.Language
StackTrace:
at Microsoft.VisualStudio.CSharp.Services.Language.Refactoring.RefactoringInterop.Refactoring_FindSourceDefinitionsAndDetermineSymbolFromParseTree(Handle compilationScope, IRefactorProgressUI progressUI, IntPtr refNodePointer, NamedSymbolKind& definitionKind, String& rqName, String& RQNameForParameterFromOtherPartialMethod, String& assemblyName, String[]& namespaceDefiningAssemblies, Handle& anonymousTypePropertyRefOwner, IntPtr& anonymousTypePropertyRefPointer, Int32& hasExternalVisibility, String[]& sourceLocationFilenames, IntPtr[]& sourceLocationOwners, IntPtr[]& sourceLocationNodePointers, Int32[]& anonymousTypePropertyReferenceToSelf)
at Microsoft.VisualStudio.CSharp.Services.Language.Refactoring.RefactoringInterop.FindSourceDefinitionsAndDetermineSymbolFromParseTree(IDECompilation compilation, IRefactorProgressUI progressUI, ParseTreeNode parseTreeNode)
at Microsoft.VisualStudio.CSharp.Services.Language.Refactoring.IDENamedSymbolSearcherBase.DetermineSymbolBase(Compilation compilation, SourceFile sourceFile, ParseTreeNode node, List`1& candidateStringSet, NamedSymbol& namedSymbol)
at Microsoft.VisualStudio.CSharp.Services.Language.Refactoring.HighlightReferenceSymbolSearcher.DetermineSymbol(Compilation compilation, SourceFile sourceFile, ParseTreeNode node)
at Microsoft.VisualStudio.CSharp.Services.Language.Refactoring.ManagedHighlightReferences.<>c__DisplayClass15.<GetHighlightReferenceSpansOnSingleFile>b__d()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
InnerException:
About Info
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.5.50709 SP1Rel
Installed Version: Professional
Microsoft Office Developer Tools 01018-532-2002181-70056
Microsoft Office Developer Tools
Microsoft Visual Basic 2010 01018-532-2002181-70056
Microsoft Visual Basic 2010
Microsoft Visual C# 2010 01018-532-2002181-70056
Microsoft Visual C# 2010
Microsoft Visual C++ 2010 01018-532-2002181-70056
Microsoft Visual C++ 2010
Microsoft Visual F# 2010 01018-532-2002181-70056
Microsoft Visual F# 2010
Microsoft Visual Studio 2010 Team Explorer 01018-532-2002181-70056
Microsoft Visual Studio 2010 Team Explorer
Microsoft Visual Studio Tools for Applications 3.0 01018-532-2002181-70056
Microsoft Visual Studio Tools for Applications 3.0
Microsoft Visual Web Developer 2010 01018-532-2002181-70056
Microsoft Visual Web Developer 2010
AnkhSVN - Subversion Support for Visual Studio 2.1.10129.17
AnkhSVN - Subversion Support for Visual Studio 2.1.10129.17
* Ankh.Package 2.1.10129.17
* Subversion 1.6.16 via SharpSvn 1.6016.1637.10768
SharpSvn is linked to: Apr 1.4.2, Apr-util 1.3.10, Neon 0.29.5, OpenSSL 1.0.0d 8 Feb 2011, serf 0.7.1, SQLite 3.7.5, Subversion 1.6.16-SharpSvn-tag-1.6.16@1076827, ZLib 1.2.5
SharpSvn is dynamically linked to: Cyrus Sasl 2.1.23
SharpSvn is optionally linked to: Berkeley DB 4.4.20, SharpPlink 1.6016.1637.10768
Crystal Reports Templates for Microsoft Visual Studio 2010
Crystal Reports Templates for Microsoft Visual Studio 2010
Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.40219
Microsoft Visual Studio 2010 SharePoint Developer Tools
|
|
|
|
|
|
 Confirmed. The space before "name" was crucial and I had to edit it back in, so you may get some false negatives.
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel
Installed Version: Professional
Microsoft Visual C# 2010 01018-532-2002102-70106
Microsoft Visual C# 2010
Microsoft Visual C++ 2010 01018-532-2002102-70106
Microsoft Visual C++ 2010
Microsoft Visual F# 2010 01018-532-2002102-70106
Microsoft Visual F# 2010
Microsoft Visual Studio 2010 Team Explorer 01018-532-2002102-70106
Microsoft Visual Studio 2010 Team Explorer
Coco/R 1.0
This plugin enables the use of Coco/R inside Visual Studio 2010
Crystal Reports Templates for Microsoft Visual Studio 2010
Crystal Reports Templates for Microsoft Visual Studio 2010
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2529927) KB2529927
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2529927.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2548139) KB2548139
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2548139.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2549864) KB2549864
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2549864.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2565057) KB2565057
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2565057.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2635973) KB2635973
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2635973.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2736182) KB2736182
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2736182.
Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.
Security Update for Microsoft Visual Studio 2010 Professional - ENU (KB2645410) KB2645410
This security update is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2645410.
|
|
|
|
|
|
To me it happens regardless of whether I put a space before "name".
|
|
|
|
|
Update: installing all the hotfixes & stuff from windows update did *not* solve the problem.
|
|
|
|
|