Andrew Davies wrote: > I think the optimiser is assuming the line inside the do while loop is > static and therefore removes it from the loop. As a result it gets stuck. > Anyone know how to solve this without turning the optimiser off? volatile int test; HTH -- mailto:michel.decima@cnet.francetelecom.fr