Visual Studio 2010 crashes when I compile anything

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Post Reply
User avatar
AshMcConnell
Silver Sponsor
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

Post 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
User avatar
jacmoe
OGRE Retired Moderator
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

Post by jacmoe »

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.
User avatar
AshMcConnell
Silver Sponsor
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

Post 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
User avatar
antred
Gnoblar
Posts: 21
Joined: Sun Nov 28, 2010 7:03 pm
Location: Germany
Contact:

Re: Visual Studio 2010 crashes when I compile anything

Post 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.
User avatar
xavier
OGRE Retired Moderator
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

Post 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).
Do you need help? What have you tried?

Image

Angels can fly because they take themselves lightly.
User avatar
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

Post 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.
There are 10 types of people in the world: Those who understand binary, and those who don't...
User avatar
AshMcConnell
Silver Sponsor
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

Post 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
User avatar
antred
Gnoblar
Posts: 21
Joined: Sun Nov 28, 2010 7:03 pm
Location: Germany
Contact:

Re: Visual Studio 2010 crashes when I compile anything

Post 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?
User avatar
AshMcConnell
Silver Sponsor
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

Post 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.
User avatar
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

Post by Zonder »

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...
User avatar
AshMcConnell
Silver Sponsor
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

Post 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
User avatar
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

Post 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
There are 10 types of people in the world: Those who understand binary, and those who don't...
User avatar
antred
Gnoblar
Posts: 21
Joined: Sun Nov 28, 2010 7:03 pm
Location: Germany
Contact:

Re: Visual Studio 2010 crashes when I compile anything

Post 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.
User avatar
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

Post 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
There are 10 types of people in the world: Those who understand binary, and those who don't...
User avatar
AshMcConnell
Silver Sponsor
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

Post 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
Post Reply