Results 1 to 2 of 2

Thread: Why does it not compile?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    57

    Question

    In MS Visual C++ 6.0, why do some programs crash when compiled in 'Release Mode'? They work perfect in 'Debug'. I heard something about different memory locations in debug and release compiles. Is there a specific command line tag (/XX) that causes this?

    Thanks for any info concerning this matter,

    Chilibean

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The most common cause is the optimisations performed by the compiler. Debug builds have all optimisations disabled, so that they can be traced accurately. Try using Release mode, but disabling optimisations, or only disabling some of them (under Project Settings->Compile).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width