Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problem with Visual Studio 2010

I've been using Visual Studio to code my C# project for a while, everything is seem to be okay until today, I modified code from C# File Browser and use it in my project as component. After that I cannot change the Window Form icon (as same as I've done with others win form) when I browse the icon file Visual Studio become stop working. Moreover while I'm do the debugging with window form that have file browser, I try to test an function by browsing a file after I've browse a file VS also stop working. More and moreover sometime VS stop working by itself without any action by me. Anyone know where to seek for the cause or how to solve this.

I've solved the icon problem by using

this.Icon = new System.Drawing.Icon("icon.ico");

and set the properties of image:

Build Action: Content
Copy to output Directory: Always

after I've installed VS 2010 service pack 1 the icon problem can be solve, I can browse the icon file in properties but another fail on debugging still the same and I've got

exited with code -2147483645 (0x80000003).

which seem to be cause by the file browser library

like image 994
Carry All Avatar asked Sep 14 '11 14:09

Carry All


People also ask

Can I still use Visual Studio 2010?

Visual Studio 2010 - Microsoft Lifecycle | Microsoft Learn. This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Can Visual Studio 2010 install on Windows 10?

VS 2010 could be installed on Win 10, there is no compatible problem between them. Before installing, please check the windows update and patch them up.

Why does Visual Studio keep crashing?

If you experience crashes of Visual Studio, typically when working with a very large solution, your IDE might be out of virtual memory. Typical indicators of the problem include a "one or more errors occurred" message, "the process appears to be deadlocked" message, and OutOfMemory exception in a crash dump.


1 Answers

I've recently had a lot of crashing going on also.

I was able to get my website solution functional again by deleting the Solution User Options files.

.suo files, under your profile ( OS dependent ) (My Documents\Visual Studio 2010\Projects\solutionName for xp, unless you have your .sln someplace else.) (NOTE: You right click a solution on the start page, and open Containing Folder.)

solutionName.sln.docstates.suo is one of them. This cleared up the problem i was experiencing, but then caused other issues. and solutionName.suo

Do realize, this will lose ALL settings you have made for this solution.

However, it can clear things up.

I believe that once you get a crash, you can get garbage in these files. In some cases, it may also be necessary to delete the .sln file itself.

As always, keep a copy of these files just in case...

like image 142
Bob Housedorf Avatar answered Oct 13 '22 00:10

Bob Housedorf