Page 1 of 1

Visual Studio 2010 crashes when I compile anything

Posted: Wed Nov 24, 2010 9:06 pm
by AshMcConnell
Hi Folks,

Just a wishful cry for help really.

At first I tried to compile my own project that had been converted from VS2008 and it kept crashing the IDE. I thought it may have been having difficulties with libraries that were compiled in VS2008 when it was linking, so I decided to move on to trying to compile ogre.

It crashed.

Then I tried to compile ogre's dependency package.

It crashed.

I'm not sure how to proceed, anyone have a similar experience? Any thoughts on how to fix it?

Thanks for your help
All the best,
Ash

Re: Visual Studio 2010 crashes when I compile anything

Posted: Thu Nov 25, 2010 8:55 am
by jacmoe
Did you create a project from scratch and it crashed?

Re: Visual Studio 2010 crashes when I compile anything

Posted: Thu Nov 25, 2010 9:00 am
by AshMcConnell
Hi Jacmoe,

Got it working last night (thank goodness)!

I didn't create a "hello world", but i did compile the Ogre VC 2010 Dependencies from scratch and it crashed.

I had to uninstall VC2010 express (i had previously installed) and VC2010 ultimate (I managed to get into the bizspark program!). I also uninstalled AMD Codeanalyst for good measure (there were some reports of it causing probs). I then reinstalled VC2010 ultimate and it started working.

A day wasted but at least it's working now!
All the best,
Ash

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 1:55 am
by antred
Man, I sure hate it when that happens. My Visual Studio 2008 at work crashes on me with irritating regularity :roll: ... I've actually switched to coding in Notepad++ and only opening Visual Studio to compile and debug. At home I'm using Visual Studio 2010, which is behaving very well so far.

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 5:37 am
by xavier
AshMcConnell wrote: I had to uninstall VC2010 express
This usually is the primary issue. Express editions don't play nice with the retail versions (they never have, this isn't unique to 2010).

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 9:40 am
by Zonder
AshMcConnell wrote:Hi Jacmoe,

Got it working last night (thank goodness)!

I didn't create a "hello world", but i did compile the Ogre VC 2010 Dependencies from scratch and it crashed.

I had to uninstall VC2010 express (i had previously installed) and VC2010 ultimate (I managed to get into the bizspark program!). I also uninstalled AMD Codeanalyst for good measure (there were some reports of it causing probs). I then reinstalled VC2010 ultimate and it started working.

A day wasted but at least it's working now!
All the best,
Ash
I have had a similar problem recently it extended across many project types and a reinstall fixed for me also. I have to say the stability in VS2010 is a bit poor I do get the feeling it was just rushed out of the door.

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 10:19 am
by AshMcConnell
xavier wrote:
AshMcConnell wrote: I had to uninstall VC2010 express
This usually is the primary issue. Express editions don't play nice with the retail versions (they never have, this isn't unique to 2010).
A little warning when installing wouldn't have gone amiss, they take about 30 mins to check everything is all there, you'd think a little check for VS2010 express wouldn't have been out of the question :). I hope this thread helps some other googler when they have the same problem.

I'm not entirely happy with 2010, it seems incredibly slow to compile even 1 cpp file after a change (30-40 secs + 30 secs to link). It feels like C++ was quite neglected

All the best,
Ash

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 12:02 pm
by antred
AshMcConnell wrote:I'm not entirely happy with 2010, it seems incredibly slow to compile even 1 cpp file after a change (30-40 secs + 30 secs to link). It feels like C++ was quite neglected.
Sounds like something is still wrong with your setup. VS 2010's compiler is blazingly fast for me, faster than VS2008's in fact. Is your project stored locally or on a network drive?

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 12:16 pm
by AshMcConnell
antred wrote:
AshMcConnell wrote:I'm not entirely happy with 2010, it seems incredibly slow to compile even 1 cpp file after a change (30-40 secs + 30 secs to link). It feels like C++ was quite neglected.
Sounds like something is still wrong with your setup. VS 2010's compiler is blazingly fast for me, faster than VS2008's in fact. Is your project stored locally or on a network drive?
No, it's a local drive and a fairly fast one (although not SSD). What version of VS 2010 are you using? I am using Ultimate (I managed to get into the MS BizSpark programme). I have noticed other people complain that ultimate isn't as fast, but that might be a red herring.

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 12:24 pm
by Zonder
The IDE is slower but I havn't noticed slowness from the compilers. I am also using Ultimate

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 12:38 pm
by AshMcConnell
Zonder wrote:The IDE is slower but I havn't noticed slowness from the compilers. I am also using Ultimate
Do you have Visual Assist and AnkhSVN plugins installed? I might try disabling them

Re: Visual Studio 2010 crashes when I compile anything

Posted: Tue Nov 30, 2010 1:53 pm
by Zonder
mine is a straight install as I use team foundation server. I would go with disabling ankhsvn first as all source control plugins effect visual studio performance a bit

Re: Visual Studio 2010 crashes when I compile anything

Posted: Wed Dec 01, 2010 7:54 am
by antred
AshMcConnell wrote: No, it's a local drive and a fairly fast one (although not SSD). What version of VS 2010 are you using? I am using Ultimate (I managed to get into the MS BizSpark programme). I have noticed other people complain that ultimate isn't as fast, but that might be a red herring.
I got the 'Professional' version. Have you tried invoking the compiler from outside the IDE? I mean just using it from the command line? Would be interesting to see if that makes any difference.

Re: Visual Studio 2010 crashes when I compile anything

Posted: Wed Dec 01, 2010 9:59 am
by Zonder
antred wrote:
AshMcConnell wrote: No, it's a local drive and a fairly fast one (although not SSD). What version of VS 2010 are you using? I am using Ultimate (I managed to get into the MS BizSpark programme). I have noticed other people complain that ultimate isn't as fast, but that might be a red herring.
I got the 'Professional' version. Have you tried invoking the compiler from outside the IDE? I mean just using it from the command line? Would be interesting to see if that makes any difference.
yes that is a good point run MSBUILD.EXE on your solution file

Re: Visual Studio 2010 crashes when I compile anything

Posted: Wed Dec 01, 2010 12:37 pm
by AshMcConnell
Thanks guys, building from the commandline has lead me to the source of the problem. VS 2010 needs a metric butt-load of ram to run with any kinda of speed.

I had 3gig of ram in my dev machine. I stole a gig from another machine and now it's pretty sharpish. I have ordered a 2gig stick of ram and hopefully that will work for any eventuality

It went from around 1min30secs to compiling a single CPP + creating lib + linking 2 exes in around 15 secs now. This makes coding a much more enjoyable experience!

Thanks!
Ash