http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Thanks,
I am sorry if I came across as a wise-ass, I was just getting very frustrated..
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
As I found the bug, it was easy to fix. My point is not that the code contains bugs - most code will contain bugs - but it seemed as if the code had not been tested at all. Just one single run of the code, would have shown that the code was faulty (perhaps you'd have missed the buffer overrun, but certainly not the infinite loop).
Anyhow, fortunately we have access to the source code, and we are able to fix the problems ourselves.