vc7 debugger random jump

Visual Studio210
Hi,



I have a very weird problem. Have anyone encounter this and how do you

solve it?



For example, I have 20 line of code (example only, no real sense)



0

1 for(int i=0;i<NoOfMatches;i++) {

2

3

4 if(theList.GetNo(i)== (unsigned long) -1) break;

5

6

7 printf("%s\t%f\n",RamDB.GotoEntry(theList.GetNo(i))->

8 GetFilename(),

9 theList.GetDistanceValue(i));

10

11

12

13

14

15 //nothing here

16

17

18

19

20



Line 0,2,3,5,6,10 is empty, other with command.



Now, when I debug this with breakpoint sets at line 1 (using VC7),

it will not stop at the breakpoint at line 1. It might stop at line 2,

and when you click on "go to next", it might go line 4, then next, and

line 5, next, it go line ,7,8,10,13,15,18,19,20 etc. in fact, randomly.



Do anyone know what is happening?



Thanks a lot.



Vi


-