Visual Studio 2010 crashes when I compile anything
- AshMcConnell
- Silver Sponsor

- Posts: 605
- Joined: Fri Dec 14, 2007 11:44 am
- Location: Northern Ireland
- x 16
- Contact:
Visual Studio 2010 crashes when I compile anything
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
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
- jacmoe
- OGRE Retired Moderator

- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
Did you create a project from scratch and it crashed?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
- AshMcConnell
- Silver Sponsor

- Posts: 605
- Joined: Fri Dec 14, 2007 11:44 am
- Location: Northern Ireland
- x 16
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
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
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
- antred
- Gnoblar
- Posts: 21
- Joined: Sun Nov 28, 2010 7:03 pm
- Location: Germany
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
Man, I sure hate it when that happens. My Visual Studio 2008 at work crashes on me with irritating regularity
... 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.
- xavier
- OGRE Retired Moderator

- Posts: 9481
- Joined: Fri Feb 18, 2005 2:03 am
- Location: Dublin, CA, US
- x 22
Re: Visual Studio 2010 crashes when I compile anything
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).AshMcConnell wrote: I had to uninstall VC2010 express
- Zonder
- Ogre Magi
- Posts: 1178
- Joined: Mon Aug 04, 2008 7:51 pm
- Location: Manchester - England
- x 76
Re: Visual Studio 2010 crashes when I compile anything
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.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
There are 10 types of people in the world: Those who understand binary, and those who don't...
- AshMcConnell
- Silver Sponsor

- Posts: 605
- Joined: Fri Dec 14, 2007 11:44 am
- Location: Northern Ireland
- x 16
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
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 questionxavier wrote: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).AshMcConnell wrote: I had to uninstall VC2010 express
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
- antred
- Gnoblar
- Posts: 21
- Joined: Sun Nov 28, 2010 7:03 pm
- Location: Germany
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
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?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.
- AshMcConnell
- Silver Sponsor

- Posts: 605
- Joined: Fri Dec 14, 2007 11:44 am
- Location: Northern Ireland
- x 16
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
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.antred wrote: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?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.
- Zonder
- Ogre Magi
- Posts: 1178
- Joined: Mon Aug 04, 2008 7:51 pm
- Location: Manchester - England
- x 76
Re: Visual Studio 2010 crashes when I compile anything
The IDE is slower but I havn't noticed slowness from the compilers. I am also using Ultimate
There are 10 types of people in the world: Those who understand binary, and those who don't...
- AshMcConnell
- Silver Sponsor

- Posts: 605
- Joined: Fri Dec 14, 2007 11:44 am
- Location: Northern Ireland
- x 16
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
Do you have Visual Assist and AnkhSVN plugins installed? I might try disabling themZonder wrote:The IDE is slower but I havn't noticed slowness from the compilers. I am also using Ultimate
- Zonder
- Ogre Magi
- Posts: 1178
- Joined: Mon Aug 04, 2008 7:51 pm
- Location: Manchester - England
- x 76
Re: Visual Studio 2010 crashes when I compile anything
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
There are 10 types of people in the world: Those who understand binary, and those who don't...
- antred
- Gnoblar
- Posts: 21
- Joined: Sun Nov 28, 2010 7:03 pm
- Location: Germany
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
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.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.
- Zonder
- Ogre Magi
- Posts: 1178
- Joined: Mon Aug 04, 2008 7:51 pm
- Location: Manchester - England
- x 76
Re: Visual Studio 2010 crashes when I compile anything
yes that is a good point run MSBUILD.EXE on your solution fileantred wrote: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.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.
There are 10 types of people in the world: Those who understand binary, and those who don't...
- AshMcConnell
- Silver Sponsor

- Posts: 605
- Joined: Fri Dec 14, 2007 11:44 am
- Location: Northern Ireland
- x 16
- Contact:
Re: Visual Studio 2010 crashes when I compile anything
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
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
