Sign in to follow this  

Using Visual Studio 2005 C++ EE and memory?

This topic is 3857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys/ girls, Ive been using VS C++ EE for sometime now, and recently when entering code I'm getting a strange hick-up. Whenever I enter code, it is not shown straight away, I either have to wait for a while or change to another screen and go back for the code to be shown. Do any of you guys have any idea what might be causing this? Thank you.

Share this post


Link to post
Share on other sites
That IDE disk swaps like hell for me all the time. You want to paste a small paragraph of code, or check what's in the 'edit' menu, and it swaps for 35 seconds, while you sit there and wait. The newer VS IDEs don't run well on lower memory systems, especially with all the bells and whistles turned on.

Easy solution is just to use the VS2005 compiler through the code::blocks IDE instead.

Share this post


Link to post
Share on other sites
I would try deleting your Solution's ncb file. i.e. if your solution is called Game.sln, then I would delete the Game.ncb file. This file will be regenerated by Intellisense so is safe to delete.

I find one some machines (for larger projects at least), I need to disable Intellisense completely, I do this by just creating a dummy folder with the name of the ncb file which would be generated for that project. Works well, but means I have no intellisense. :(

Share this post


Link to post
Share on other sites
Quote:
Original post by Vampyre_Dark
Easy solution is just to use the VS2005 compiler through the code::blocks IDE instead.


What is code::blocks IDE? Where can I find it?

Quote:
Original post by Deventer
I would try deleting your Solution's ncb file. i.e. if your solution is called Game.sln, then I would delete the Game.ncb file. This file will be regenerated by Intellisense so is safe to delete.


Where can I find the ncb file? Deleting that file, does this still let me debug my code and go over it one variable at a time?

Thanks for the help guys, really appreciated.

Think it's kinda cool, one person from Canada, one person from Australia helping a European. Isn't the world a small place ;)

Share this post


Link to post
Share on other sites
Quote:
Original post by J0Be
Quote:
Original post by Vampyre_Dark
Easy solution is just to use the VS2005 compiler through the code::blocks IDE instead.


What is code::blocks IDE? Where can I find it?
codeblocks.org

Share this post


Link to post
Share on other sites
Quote:
Original post by J0Be
Where can I find the ncb file? Deleting that file, does this still let me debug my code and go over it one variable at a time?

Yes it does let you debug and go over one variable at a time.
The file can be found in the same folder than the project solution.

Share this post


Link to post
Share on other sites
It does indeed sound like all you need to do is trash the NCB file. The delay you're seeing is being caused by Intellisense - the system that does things like suggest function names for you while you're typing - getting confused. Intellisense stores its data in the NCB file, and sometimes that data can become corrupted; so, close Visual Studio, delete the NCB file, launch Visual Studio again, and it will rebuild the NCB file from scratch.

Quote:
Original post by Vampyre_Dark
Easy solution is just to use the VS2005 compiler through the code::blocks IDE instead.


You have a very odd definition of "easy solution."

Share this post


Link to post
Share on other sites
Quote:
Original post by superpig
Quote:
Original post by Vampyre_Dark
Easy solution is just to use the VS2005 compiler through the code::blocks IDE instead.
You have a very odd definition of "easy solution."
Why is that? I run on a 256 mb machine and VSEE murders it. I would actually run VS over CB if this wasn't the case.

With C::B I can keep multiple large projects opened with the same features on while I still have 2 3D modelling apps, paintshop pro, firefox opened with a few tabs, with some mp3s playing, and everything is nice and smooth.

Running the new EE IDEs on their own, without all that is hard enough (for me).

All I have to do is pick VS2005 as my compiler from CB's compiler setup dropbox, and there isn't much difference to me other than the program name across the title bar, because I don't use any of the advanced IDE features. Personally, I'm happy with a Rich Edit control, and a Compile hotkey.

I was first to reply to a post that didn't have much detail, and at the time, the problem sounded the same as my recent experiences. It's a quick fix for a program that for me can cause up to a minute of paging just trying to browse the menu at the top of the screen. AKA: 'Easy solution'.

Share this post


Link to post
Share on other sites
Quote:
Original post by Vampyre_Dark
Why is that?
Switching IDEs to solve a problem with intellisense crashing is not my idea of an easy solution, especially for a person in the beginner's forum who really needs to not have his/her learning disrupted by changing toolsets at the drop of a hat.

I can appreciate that you did not recognise the true nature of the OP's problem as you don't actually run the IDE.

If I'm being overly harsh to you then I apologise, but I'm getting increasingly annoyed with seeing "switch to Code::Blocks" posted as a response to problems with VS that could be easily solved without making beginners retrain themselves on a whole load of tools. If you're going to encourage people to drop a tool then you could at least pick on something that actually deserves it, like C++.

Share this post


Link to post
Share on other sites
Quote:
Original post by superpig
Quote:
Original post by Vampyre_Dark
Why is that?
Switching IDEs to solve a problem with intellisense crashing is not my idea of an easy solution
This thread is titled Using Visual Studio 2005 C++ EE and memory?There is no mention of intellisense in the first post. I've never had a problem in the older VS and stalling from intellisense, because my programs are never that complex.
Quote:
I'm getting increasingly annoyed with seeing "switch to Code::Blocks" posted as a response to problems with VS that could be easily solved without making beginners retrain themselves on a whole load of tools.
I'm not trying to shove an OSS program in someone's face. I only care wether a given program works or it doesn't, not it's stance on the GPL, and in this case, CB does the trick. Didn't I just post that I would use VS if not for the paging problem?
Quote:
Original post by Me
Why is that? I run on a 256 mb machine and VSEE murders it. I would actually run VS over CB if this wasn't the case.
There isn't anything to retrain on. Both programs are not that different, and you just press a button to call the compiler until the IDE to the exact same results. CB is mostly a multiplatform VS knockoff to begin with. [lol]

Try pulling out your ram chips and running VSEE, you'll get this exact symptom while the system starts to page.
Quote:
when entering code I'm getting a strange hick-up. Whenever I enter code, it is not shown straight away


You are taking what I wrote completly out of context. At the time of my reply, it wasn't a thread about intellisense crashing. CB is obviously not a solution to that. It is a solution a memory problem however.

Share this post


Link to post
Share on other sites
Quote:
Original post by Vampyre_Dark
This thread is titled Using Visual Studio 2005 C++ EE and memory?There is no mention of intellisense in the first post.
Why accept the OP's take on the situation?

Quote:
There isn't anything to retrain on. Both programs are not that different,
So you say, but...
Quote:
I've never had a problem in the older VS and stalling from intellisense, because my programs are never that complex.
Quote:
I don't use any of the advanced IDE features.

...have you really examined them both in enough depth to make that kind of claim?

Quote:
Try pulling out your ram chips and running VSEE, you'll get this exact symptom while the system starts to page.
I've run VSEE on 256MB systems. It was noticably more sluggish than my usual 1GB system, but it was perfectly usable (and that was with Firefox and WMP playing music in the background). I suspect there may be something sub-optimal about your setup.

Quote:
At the time of my reply, it wasn't a thread about intellisense crashing. CB is obviously not a solution to that. It is a solution a memory problem however.
Your mistake, then, was nothing more than solving the problem the client (OP) claimed they had, instead of the problem they actually had. It gets you the paycheck, but usually not so much in the way of repeat business... [smile]

Anyway, this is getting slightly silly. Probably better to take it to PM if you want to discuss it further.

Share this post


Link to post
Share on other sites
Quote:
Original post by superpig
... and sometimes that data can become corrupted; so, close Visual Studio, delete the NCB file, launch Visual Studio again, and it will rebuild the NCB file from scratch.


Thanks for the help superpig, guess I'll have to do a search on my computer and find out where it is situated.

Share this post


Link to post
Share on other sites
Quote:
Original post by J0Be
guess I'll have to do a search on my computer and find out where it is situated.


It'll be in the same folder as your project/solution files. Might be hidden though.

Share this post


Link to post
Share on other sites
Hi guys,

Well, did what you told me to do, deleted the ncb-file, restarted VSC++2005, same result though, after a while, it starts delaying my input.

Ran a virus checker on it (AVG) anti spam (Ad-Aware), no problems coming from there. Created a new project and started from scratch, same problem.

Share this post


Link to post
Share on other sites
Did you try my suggestion of creating a dummy folder with the same name as the ncb?

That should pretty quickly rule out intellisense as a problem if it still occurs after you've tried it.

Share this post


Link to post
Share on other sites
Quote:
Original post by Deventer
..., I do this by just creating a dummy folder with the name of the ncb file which would be generated for that project. Works well, but means I have no intellisense. :(


No, I didn't try that yet, do I create the folder in the same place where the ncb file is located?

Share this post


Link to post
Share on other sites
Yes, that's right, with the exact same name as the NCB normally generated by Visual Studio.

Visual Studio will always try to generate a new NCB, and if it can't access it, it turns off intellisense completely (for that solution).

Share this post


Link to post
Share on other sites
Quote:
Original post by Deventer
Yes, that's right, with the exact same name as the NCB normally generated by Visual Studio.

Visual Studio will always try to generate a new NCB, and if it can't access it, it turns off intellisense completely (for that solution).


Ok, thanks Deventer.

@ Antheus,

1.00GB Ram
Windows XP-Pro
Pentium M 1.6

Though, I have been working on this laptop for more then a year with VS C++ 2005 EE and never had any trouble up untill now. The programs I'm writing are very small, not even a 100 lines of code. There more of an educational kind. I'm following the C++ Workshop at the moment.

Share this post


Link to post
Share on other sites
Ok, I have no problems running 500-1000 file projects with 1 gig of RAM. And that's all boost based code, mostly headers, essentially all templates, etc.

There is only one project that I know of that destroys intellisense, but that one pushes STL to the limits. After 30 minutes, Intellisense still couldn't make sense of it. Other than that, I've never experienced any problems.

The processor might be a bit on the weak side, but not enough to warrant such slowdowns.

In addition to that, I also run a few MVS plugins, so I'm not running some light version.

I also have virtual double monitor setup, where I share two monitors over the network, so same machine runs two displays - again, without a hitch.

The only time I do experience long delays, is when I switch into a game (300-700Mb), which pushes everything else on the disk. But switching between regular applications (20+ Firefox windows, various text editors, consoles, ssh, svn, and so on) gives me no problems.

On the same machine I also run MySQL and MSSQL servers, along with Apache, and optionally Tomcat. I also frequently run Eclipse and MVS alongside with no delays when switching between the two.

So, no, I don't think you should be experiencing such long delays, especially not on account of RAM. Once again, all of the above on 1 gig of RAM (underclocked even, for old module compatibility)

You might want to check your available memory, how many other applications you have running (toolbar tools, running services, processes), but I don't believe RAM is a problem in your case. Processor, possibly - but 1 gig of RAM is more than sufficient.

Share this post


Link to post
Share on other sites

This topic is 3857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this