Thread: Visual Studio auto-error-correct feature???

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Visual Studio auto-error-correct feature???

    I was working on this program (which displays models). It ran fine for me but other people complained about misplaced vertices. It turned out that when I ran the program from my projects folder (either from VC itelf or from the Release folder directly) it worked fine, but if I moved the exe to another folder I saw the same bugs.

    The error was dereferencing an iterator pointing to end(), but why didn't the error occur when running from the projects folder. Did it start some to me unknown VC-feature that auto-corrects or avoid errors or something? Or is it just plain coincidence (highly unlikely as I've been debugging for, well, days)?

    I use VC 2003 btw!
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Could it have been a difference between a debug release and a production release?

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Nope, the same exe all the times (release, not debug).
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    I don't know, but I've noticed differences between running my programs from within VS and running the exe. For instance, I made a windows GUI program that was supposed to start out maximized. It worked fine running it from within VS but wasn't maximized if I opened the exe
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM