If I'm reading your email correctly your code is generating a memory overrun. This is a very common problem with C/C++ and is usually caused by accessing an array outside of its defined bounds. If you post your code it might help identify the specific problem.