Thread: VC++ 2005 Express: Weird Behaviour

  1. #1
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071

    VC++ 2005 Express: Weird Behaviour

    This only started happening recently, and I have no idea what's going on. I'll make changes to a form in the designer, compile and run, no problem. Then i'll go back and make more changes in the designer, compile, and it spits redefinition errors at me. For some reason, the designer is generating duplicated code. So far this has only happened to me while editing menu items and toolbar items.

    Any ideas?
    Thanks.

    EDIT: I should also mention that if I try and remove the redefined lines, the desinger gives me either a "C++ CodeDOM parser error" or a "Catastrophic error".
    Last edited by psychopath; 06-20-2006 at 05:52 PM.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    2005 is quite buggy, even in the standard release. It has a very bad habit of failing to re-compile changes to your code, duplicate definitions, non-grouped public, private, and protected members, memory leak detection errors, help system crashing or being extremely slow, IDE crashing, heap corruption, MFC class objects errors, auto-generated code errors, etc, etc.

    Plus I think the entire IDE leaks memory on shutdown because if I play a game after just opening the IDE and selecting a project, but NOT compiling it, it either stutters, hesitates, completely crashes or fails to start.

    I look for a service pack to be released soon.
    Last edited by VirtualAce; 06-21-2006 at 04:17 AM.

  3. #3
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    Unfortunatly, I can't wait for the service pack, so iv'e come up with a work around for the designer issues.

    It seems like the designer only craps out if you add any of your own code to the generated file (even includes and namespaces). So what I do, is just create the main form in another project with the designer, create the event functions, and then copy it into the actual project and add my own code.

    With issues like this, there's no way i'm letting VS generate class templates for me too.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VS 2008 Express with 2005 PSDK
    By Mario F. in forum Tech Board
    Replies: 2
    Last Post: 10-11-2008, 12:29 PM
  2. How to compile .c files with Visual C# Express 2005
    By daYz in forum Windows Programming
    Replies: 2
    Last Post: 02-22-2008, 10:37 AM
  3. Linker errors with 2005 Express
    By thetinman in forum Windows Programming
    Replies: 4
    Last Post: 12-30-2006, 09:04 AM
  4. Help: Microsoft Visual Basic 2005 Express Editon
    By karlawarla in forum Windows Programming
    Replies: 5
    Last Post: 11-22-2006, 02:46 PM
  5. Visual C++ 2005 Express Edition
    By BestGameMovie in forum C++ Programming
    Replies: 6
    Last Post: 05-15-2005, 01:49 PM