int k = 0; do { k++; } while (k < 10); spins without incrementing k. Probably a compiler bug: I'll let Keith sort it out :-). Bart