VC++ 2008 Express headache

Discussion in 'Programmer's Corner' started by powzoom, Jul 12, 2009.

  1. powzoom

    Thread Starter Active Member

    Jan 18, 2009
    41
    0
    Not sure how many people here are familiar with this but any help would be great.

    I create a Windows Form project and then immediately build it without any modifications and it gives me this error.


    Compiling...
    stdafx.cpp
    e:\program files\microsoft visual studio 9.0\vc\atlmfc\include\cstringt.h(249) : error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm39' or greater
    e:\program files\microsoft visual studio 9.0\vc\atlmfc\include\cstringt.h(249) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit


    I am using XP with service pack 3. I tried rebuilding and reinstalling the program but the same error persists. If I add -Zm40 or -Zm(anything) to the command line, I get another error:

    Form.cpp
    c1xx : fatal error C1023: 'Debug\Form.pch' : unexpected error with pch, try rebuilding the pch

    Same thing happens when I open someone else's project that works on another system. Please help, this error makes this program useless.
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,790
    Correct me if I'm wrong, but isn't this the free download version. There may be no help for you unless you purchase the full professional version. Sneakly little fellows those boys in Redmond if that's the case.
     
  3. Mike2545

    Active Member

    Mar 26, 2009
    116
    3
    Try increasing your virtual memory.
     
  4. powzoom

    Thread Starter Active Member

    Jan 18, 2009
    41
    0
    I increased the virtual memory but it didn't solve anything... The funny thing is that it worked a few times when I first downloaded it. But then for some unknown crazy reason, it decided it didn't want to work anymore.
     
  5. Mark44

    Well-Known Member

    Nov 26, 2007
    626
    1
  6. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    144
    Is there a global setting for the PCH range which the compiler uses in the absence of explicit definition by the /Zm option? If so, is that something you have changed?

    Dave
     
  7. powzoom

    Thread Starter Active Member

    Jan 18, 2009
    41
    0
    I think I found the problem. It's completely unrelated to visual studio. I have the iexplore virus on my computer that plays music in the background, blocks all google and tech related sites, and doesn't let me run or install virus utilities, sometimes blocks my keyboard from working, and gives a blue screen. My computer is super messed up right now and this virus from hell is also not detected by AVG or kapersky, and not many people offer a solution on how to fix it. Currently, I'm still researching it and trying different things to get rid of it. Worst virus ever.
     
  8. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    144
    Interesting that you think it is this virus - strange that a virus would interfere with VS in any way. Either way, iexplore.exe is the legitimate name for the main Internet Explorer executable, so be careful how you try to deal with it. I would scan the system in safe mode to start with.

    If it roots itself in so deep it might be an idea to back-up your files and reinstall.

    Dave
     
  9. powzoom

    Thread Starter Active Member

    Jan 18, 2009
    41
    0
    I finally got rid of it using combofix and VS started working again.
     
Loading...