Kind of hard to tell, I think, without more context and maybe even some code. What are the libraries you are using, etc?

If you have gone out of bounds somewhere, you may have written over a memory address, then when that becomes relevant, you have a problem. Those are hard to find, but if you have access to valgrind, it will probably make the process much much easier by reporting an "access violation" during runtime at the point when the overwrite occurs.