Major_Small wrote:
would you include infinite loops, possibly infinite loops, unaccounted
for user input, infinite recursion, and that type of thing? if so
those are probably my biggest problems...
more specifically, I lose track of my loops and the scope of variables
while in those loops... for example:
for(int i=0;i<10;i++)
{
//code here
i--
//code here
}
in that example I may be using the LCV to try to increase (or
decrease) the amount of time the loop runs depending on how things go
inside the loop, but then I may miss something similar to above, where
it essentially creates an infinite loop...
Are you responding to some other posting? I can't understand your
question, perhaps the context is missing. Next time try to stay in the
same posting thread instead of starting a new one.
If you're not responding to somebody's earlier posting, please be a bit
more clear on what you'd like to know. "What kind of bug?" is not a very
good subject line either.
If you're asking for a general discussion on what bugs are the toughest
to fix, for example, then I'd say, memory bugs. Especially buffer
overruns and using memory that has been freed. The trouble with those
is that the effect is intermittent and often shows up much later than
the cause of it.
V