debugging issue

If anyone can clue me in it would be appreciated!!!! I have written an application in VC++.Net 2005. I get different results when I run "Start Debugging" from when I run "Start Without Debugging". How can this possibly be What are some possible causes

hoosierboy


Answer this question

debugging issue

  • NickBarclay

    There may be a race condition that is only apparent in one of the cases. We run the same binary in both cases so it's not an optimization issue I imagine. Can you add some extra detail as to what is behaving differently Ideally, a short code snippet would be ideal.

    Thanks,

  • DooH

    A race condition is when two different entities try to update something at the same time.  In DB type apps, it could be casued by 2 different users attempting to update the same record at the same instant. Another example might be a multi-threaded app which has two different threads attempting to write to the same memory location at the same time.

    Are the results you get from starting each way consistent   Is your app multi-threaded   Can you pinpoint a particular variable or pointer that has a different value at some particular point depending upon how the program is run   Different results under different circumstances tend to imply memory corruption and/or unitialized variables...  Be sure you are not ignoring any C4700 warnings (use of unitialized variable).

    Rick Troemel
    Microsoft VC++ Team


  • J Dunn

    My program is rather lengthy with multiple classes. What is a "race condition"

    hoosierboy (john@wrv.ca)

  • debugging issue