Solved

MS Visual C++ 6.0 (SP 5) CRASHES!

Posted on 2001-07-30
17
460 Views
Last Modified: 2008-03-03
Sometimes the MSDEV studio application crashes during compiling and I'm not talking about the compiler, but the MSDEV.exe application.  The crashes are always different (ie--different instruction address/memory address), but the same thing always occurs:

It pauses for like 2 seconds and then blamo, studio dies.  Has anyone seen this symptom?  It only happens under win2000, nt4 never had this problem.  This problem occurs on both of my win2000 boxes.

Let me know if anyone has seen this, I have searched the mircrosoft site and cannot find anything.  The latest SP5 has been applied numerous times.
0
Comment
Question by:toddmoore
  • 5
  • 3
  • 2
  • +4
17 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 0 total points
ID: 6335591
Are there old versions of the MS development tools on the computer?   i.e. might it be finding a version 5 ccompiler/linker

Try creating a make file for the project and run the make file in "steps" to see what step it is crashing in.

Does the problem occur with all source code, or just a particular file?
0
 
LVL 1

Expert Comment

by:jdrescher
ID: 6335615
Are you running any addins on visual studio? I've had many developer studio crashes using them, however most of the time the crashes were either gui related or during shutdown / startup of msdev. I have not seen msdev crash like you say and I do all my development / testing on 5 different win2k boxes, with sp5 and win2k sp2. Have you tried deleting the .ncb, .aps, .clw and other developer studio generated files. These files sometimes become corrupt and cause msdev problems.
0
 
LVL 6

Expert Comment

by:snoegler
ID: 6336752
Is your computer stable otherwise? Bad RAM can cause this problems; MSDEV takes up lots of space.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 4

Expert Comment

by:IainHere
ID: 6336961
You could try turning all macros off - I recently added a macro for automatically increasing the version number with each build and it crashed all builds I attempted except on the original project.  Like nietod asked - does it always do it, or just with certain projects / files?
0
 
LVL 1

Expert Comment

by:jdrescher
ID: 6337753
I do now recall that I had the same kind of crashes while writing a buildcount addin. I remember it was related to the COM interface to msdev, but I don't remember any specifics.
0
 

Author Comment

by:toddmoore
ID: 6341035
I use Rational Purify and Quantify, but they were both disengaged when compiling.  My computer at home does the same thing, and those components are not installed.

I did upgrade my work computer from NT 4 to Win2000.  That actually might be when I first started to notice the occasional crash.  

My workaround is to save all changed files before compiling.  It will not crash if I do that.  However, If I just compile and it auto-saves before compile, that is when it sometimes crashes...
0
 
LVL 22

Expert Comment

by:nietod
ID: 6341570
Does this do this with a newly created project?  i.e. create  simple basic project from scratch and test this.
0
 
LVL 4

Expert Comment

by:IainHere
ID: 6343779
>> However, If I just compile and it auto-saves before compile, that is when it sometimes crashes...

I've noticed that on my machine - it was happening when I tightened the access rights of a member function or variable.  Even though nothing was trying to access the offending item, the compiler still crashed.  I think it also happened sometimes when I changed functions to be virtual.  Is this what you're doing when you see the problem.  I'm afraid I didn't do anything clever to solve the problem - just saved the files before compiling.
0
 

Author Comment

by:toddmoore
ID: 6346061
I could not recreate using a new small project.  The project I was compiling during blowup consists of about 10 projects in the workspace, everything is source safe enabled, and many of the projects are dependents of other projects.  Nothing too complicated and pretty standard with a commercial product.

0
 
LVL 22

Expert Comment

by:nietod
ID: 6346087
There you have it.  Keep your projects to 1 file under 100 lines and you will be fine.  any other questions?

I would start making the small project mroe like the large one or vice versa and see where the problem occurs/dissapears.  I realsize that is a pain, but its probably your best bet.  there is hope, you know that its not a permentant problem.  You know it can be turned on or off soemhow.  So now you need to see what turns it on or off.  Then--hopefully--its something you can afford to turn off.
0
 

Author Comment

by:toddmoore
ID: 6349855
haha...  I'll try to keep our future software under 100 lines of code.  Sure would reduce the bug count too. ;)

Don't really have much time to investigate this further.  Using the work around of saving before compiling will do for now.  Surprised many other folks have not experienced this, so it I guess it could be within our project files... oh well, had to ask.  thanks everyone.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6840300
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to refund the points and PAQ for 0 points since nobody had an answer for you.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner

0
 

Author Comment

by:toddmoore
ID: 6841661
that's fine.  i still have the problem.
0
 
LVL 6

Expert Comment

by:snoegler
ID: 6842272
In the meantime i have also experienced the same problem using VC 6.0 SP3+.

In our team the problem you describe seems to happen more often if you are editing code and then without delay press F7 to build the project. I'd guess it could be that Intellisense has some background threads running which are analysing what you're typing while suddenly the build command interrupts them. I also noticed that MSDEV hangs 1-2 seconds before the crash happens. If you do not move the mouse or hit any key in this time (i.e. do not issue a message to the IDE frame window), most of the time no crash happens. I did not notice that behavior in the new IDE.
0
 

Author Comment

by:toddmoore
ID: 6844879
Seems like you are experiencing exactly what I'm seeing.  I installed 6.0 SP 5 and still had problems.  The new IDE (.net) has not crashed (yet).

I can also recreate the problem by clicking on the FILE-SAVE toolbar button as fast as I can.  It will usually say something about not being able to access the file.  I have even seen it blow away the file that I was saving when I do this.  Not good!

I imagine this problem will not be fixed as the new IDE is MS's main focus.
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 6996983
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Starting a function in a c++ application with a TCP command from C# 4 77
convert char array to number in c 5 85
How to split this in C++ 4 104
How do i run a c++ file? 15 31
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question