I am coding using a network simulator (OPNET).
For some strange reason my for loop is causing the simulator to bomb (no error message which is why I can't solve the problem).
I have tracked it to the for loop though (through tedious hours of commenting out different lines of code).
Basically if I have the following, it runs perfectly.
However if I let the loop run to completion (even with no code in it) it just iterates until the end of the loop (14 times) and then bombs.Code:for (y=0; y<nodeCount; y++) { break; }
Also if I set nodeCount to 2 so that it loops twice it also bombs. So basically if it acts as a loop should and loops more than once the simulator crashes with no error message. I have initialised y and nodeCount to 0 when declaring the variables.
Any idea?