Re: (VC++ 6.0) Strange single step behavior
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Fri, 09 May 2008 21:02:59 -0700
"Kürþat" <xx@xxxxxx> wrote:
While I debug an application in VS 6.0, I noticed a strange behavior :
Value of a local variable (an int) increases by one for every single step.
Even when the line in which the variable initialized to zero is stepped out,
the variable is still getting increased :
void func ()
{
int i, j;
i = 0;
j = 0;
// At this point j becomes 1 if I execute above line as single step
and it keeps increasing for every single stepped lines...
i = 1;
// Now j = 2 !!!
j = 2;
// Hýmm j = 3
}
Is this a known bug? If no, then what is wrong?
If that's truly the code, then the problem is that i and j were not really
assigned any memory. In that case, the debugger doesn't really know where
the values of i and j are stored, so it has to guess.
Visual Studio 98 is ten years old. Unlike wine and cheese, software does
not age well. You need to get something newer.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- References:
- (VC++ 6.0) Strange single step behavior
- From: Kürşat
- (VC++ 6.0) Strange single step behavior
- Prev by Date: Re: Visual Studio 2005 x64 mode.
- Next by Date: Re: side-by-side info problem
- Previous by thread: Re: (VC++ 6.0) Strange single step behavior
- Next by thread: does vstudio 2005 run perfectly on vista?
- Index(es):
Relevant Pages
|