Archived

This topic is now archived and is closed to further replies.

Shannon Barber

VC6 is buggy as hell!

Recommended Posts

I even have sp4 installed! Every now and then, I'll change code and wap F7 to compile, and it'll just link, it won't recomile the .cpp file I just changed! (one that's in my project...) If I try to step throught my code it skips lines and is all fubar! It really really sucks while I'm trying to debug! I have to rebuild the whole damn project to get my code to take effect - Does anyone else ever have this problem? Edited by - Magmai Kai Holmlor on 10/14/00 12:17:50 PM

Share this post


Link to post
Share on other sites
I get the occasional situation where I click build and VC++ 6.0 starts the build, it just doesn''t do anything, and when I click on the cancel build button, nothing happens.

I just use PView95 to close vcspwan.exe and "tool execution was cancled by user" appears in the output window.

I just click build again and go on my way as it always works second time.

Plus points though - VC++ 6.0 is a hell of a lot less buggier than VC++ 97 (5.0).


Waassaap!!

Share this post


Link to post
Share on other sites
I have no problems at all. VC++ 6 is one of the most bugfree development tools out there - they are usually much worse.

It is probably either your installation of VC 6 (or Windows) or your project files that are messed up.

Make a new project and put your files into that and it will prabably work again.

Jacob Marner

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I just found my first REAL problem in VC++ 6.0:

I''m getting out from a function with a return, and the program I made just crashes after the return. No fancy stuff returning. Just an int. And yes, i''ve checked that the problem really is in that return. The code is OK. 2 people + me have checked it.

It''s pretty annoying ''cuz i really can''t make out what''s wrong with the function. I may have to do the whole thing i''m doing differently because of this little problem. Not funny, as i''m in the army now and i can work with the problem only on weekends.

-- BerLan


Oh yeah, i also have forgotten my password. darn. damn army. Hate every second of it.

Share this post


Link to post
Share on other sites
My codes perfect, its the comiler that''s buggy, you must not use it that much felonius

anyway, if you wap -F7 it forces that .cpp to be re-compiled, so that helps...

VC6 from the MSDN CDs, SP4 from thier website, Win2000 from the MSDN CDs

It seems to confuse it the most, when I edit the code while debugging, that edit&continue feature sounds nice.

Share this post


Link to post
Share on other sites
First I want to say that I think that VC++ is the best IDE on the planet. But its really buggy as hell. I know the problem where VC++ refuses to recompile or simply stops and does nothing. Or sometimes I can''t acces the class view or it crashed with an internal compiler error. Lookt at this

CApp *pApp = 123;
pApp->MyFunc();

This code actually works in certain situations ;-) Loooooooool

Yea this sucks. But lookt at Code Warrior or Borland. Then you know what a really shitty compiler is...

Tim

--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity

Share this post


Link to post
Share on other sites
Just thought I''d chime in on the discussion. I''ve found VC6 to be one of the most incredibly powerful and well-made programs ever. It''s crashed a couple of times, true. But then so have most of my other programs as well.

Share this post


Link to post
Share on other sites
i find if you''re having problems do a cold reboot
still problems delete everything in the directories and rebuild again , clean + compile is not enuf.

this is one thing i had a while ago

int a; according to the watch variables a=10;
int b; according to the watch variables b=2;

if (b>a)
breakpoint set

it tryed to tell me 2 was more than 10

does anyone remember visualc 1 (whew that was buggy back in the days when borland3 ruled the roost)

though usually i have very few problems with vc considering all the shit code i feed it



http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
Just to throw in my 2 cents... I use VC++ 6 SP4 under Windows 2000 Pro about 10 hrs a day and have almost no problems with it.
I certainly wouldn''t say its one of the buggiest programs I''ve ever used...Quite the opposite, its the nicest, most bug-free environment I''ve used (and that includes emacs/gcc/gnutools as I was a UNIX-geek long before switching over to mostly Microsoft development).

Of course, as alyways, your mileage may vary...But my experiences have been good. If you were talking about Visual C++ 4 or 5, I''d agree with you...Many headaches for me in days past. But 6.0 SP4 is pretty darn solid.


Share this post


Link to post
Share on other sites
I run Plain Stock Standard Windows 98, and Visual C++ 6 runs perfectly, only crashing maybe 1 out of 100000 times, if that.

However I sometimes don''t use it because their are tools that are more lightweight memory wise, (i.e. UltraEdit32 (try it, it is all good)), and they load quicker. (using command line build tools).

But back to the main point, VC++ 6, has hardly ever crashed on me using Window 98. However I recently installed Windows 98 Second Edition, and VC++ 6 stalled when compiling constantly, crashed whenever loading stuff, and other misc bugs cropped up.

Yeah, So the moral of this story is:
Stick with what works, don''t upgrade if you don''t have too.
(Hell, I know people that still use Wordperfect 5.1 for dos )

Regards,
Nekosion


Share this post


Link to post
Share on other sites
Heh - just use Borland C++ Builder. At least you won''t have to go delving into the MFC classes, only to discover that the features documented in the help files haven''t been implemented yet.

If only the code-completion in BCB worked as well as the one in MSVC, then I''d be completely happy (+ they should borrow some more of the great features from Emacs c++-mode).

Share this post


Link to post
Share on other sites
I''ve had the same problem at university. There the problem is, that the NT file system (operating over a network) takes a while for the file to be saved. So VC says the file hasn''t changed and updates it''s timestamps ... argh ... that is annoying as hell. The only solution is to force the compile as some people have mentioned.

BTW, what do you do, when your program crashes in "new"? Has anyone ever had that one?

- MK42

Share this post


Link to post
Share on other sites
Well, VC6 has a couple bugs for me:

1)ALOT of the time, I''ll F7 Build, it builds everything just fine, then I hit Ctrl-F5 or F5 to debug or run what I just built, and it says that the files are out of date... blah blah blah, and will continue to do this until I do a rebuild. annoying, but not major.

2)Hang on Build. Hit F7, wait... wait... 30 seconds later it starts building. Sometimes VC6 will just crash.

3)Edit & Continue only has problems for me when I''m having problem #1 too.

I can''t complain, it''s pretty stable, even when it crashes on me, all files have already been saved... only thing not updated are the project settings, which HAS got me a few times.

Share this post


Link to post
Share on other sites
VC6 may have some IDE related bugs, but FYI I find it HIGHLY, HIGHLY doubtful that crashes occuring in your exe are compiler related. 99.999999999999% of the time unexplainable crashes are caused by a side effect of buggy code elsewhere.

Get yourself into the habit of blaming your code _always_ first. Every time - I mean _every_ time I have found a really weird bug in my code eventually it comes down to some head-slapping "doh!" moment elsewhere in my project where I did something really stupid.

I have worked on quite a few commercial games the past few years and that has been my experience..

Share this post


Link to post
Share on other sites
Sometimes cl.exe crashes when I abort compilation, and ClassView is really buggy, but otherwise I haven't had any problems.

EDIT: I have Standard edition and SP4.

-Jussi

"Your heat rips through me
Your hands rip my skin
Deep inside your love
You're screaming for me again"

Edited by - Selkrank on October 10, 2000 5:33:08 AM

Share this post


Link to post
Share on other sites
I think its pretty stable...
Especially for a Microsoft product

Win98 SE with VC 6 Professional SP4, no major problems
If VCSPAWN keeps hanging you got to reboot and then do a complete rebuild. Fixes it for me.

Share this post


Link to post
Share on other sites
Close the compiler and go to the directory where your files are stored. Delete the projectname.asp and projectname.ncb files. I am not sure what the .asp file is, but the ncb file is a data base so the compiler can display your classes on the Class View tab in the Workspace window.

The .ncb file is rebuilt when you open your project. Look at its size before you delete it. It will be much smaller when its rebuilt. The .asp file appears when you are debugging.

Since I started deleting these files every time I backed up my source code, VC++ hasn''t failed to compile my changed source yet.

Share this post


Link to post
Share on other sites
Yep the .ncb file is usually the culprit of any serious problems happening. It''s bad enough to cause some people to write a visual studio plugin called NukeNCB

Another file you may want to delete now and then is the .clw ( classwizard ) file - this will also cause it to be rebuilt when needed, and will remove inconsistencies and bugs.


People might not remember what you said, or what you did, but they will always remember how you made them feel.
~ (V)^|) |<é!t|-| ~

Share this post


Link to post
Share on other sites
quote:
Original post by Magmai Kai Holmlor

My codes perfect, its the comiler that''s buggy, you must not use it that much felonius



Well only every day for many hours.

I did not say that it was bugfree. I said it was less buggy that other compiler and development tools. So the problem is that you haven''t tried some many others I guess.

To be concrete MVC++ actually is quite buggy when it comes to using inner classes that are templates.

And for errors such as strange returns - try switching too innocent looking lines and the compiler will probably suddenly do it right. It is often small things that make s*it happen.

And as I said, Your IDE installation may be messed up. Do a reinstall and make a new project file or delete all temporary files.

Jacob Marner

Share this post


Link to post
Share on other sites
I work on VC6 (with sp4 and processor pack) for several hrs every day.

I never experienced big crashes or bugs.
I found some issues in debug, which made me spend a lot of time (you know... it''s hard to debug when release crashes and debug works perfectly... =)) just for discovering debug adds some typecast.

Anyhow there''s something which make me go really crazy:
the damn SOURCESAFE!

It loses check-out list, sometimes I need to quit the vc6 and then restart it for retrieving again the updated files in sourcesafe server.

Sometimes it happens that some files are no more under source control.

Once I experienced a weird problem: I had a 100 files project, and when I tried to open one (it was the material manager) the pc immediately slowed down. Every time I used cut and paste inside that file I had to wait 10 SECONDS (!!!!) before having the control again.
Solution to this problem: make a backup copy of the working folder, delete the old one, and retrieve everything from sourcesafe. Guess what? It worked. Bah. =(

Every1 experienced problem with it? every1 tried cvs?

Share this post


Link to post
Share on other sites
I've had the same problem at university. There the problem is, that the NT file system (operating over a network) takes a while for the file to be saved. So VC says the file hasn't changed and updates it's timestamps ... argh ... that is annoying as hell. The only solution is to force the compile as some people have mentioned.

BTW, what do you do, when your program crashes in "new"? Has anyone ever had that one?

- MK42

Thanks! The time on my sever was offset by -1:23 from my PC!

...

spurious interrupt
that's jsut funny =)

Edited by - Magmai Kai Holmlor on October 14, 2000 1:18:43 PM

Share this post


Link to post
Share on other sites