My first guess would be that you have done something wrong with a pointer into that array and exceeded one of the dimensions. In debug mode, memory is initialized to 0. In release mode, memory is left in whatever state the OS left it in. You are probably using a string function that expects a null terminated string. In debug mode, the initialized memory terminates your strings for you. In release mode, the string function happily zooms along unable to find a null terminator. Luckily, the OS detects this and tells you.
There are two ways to find this:
1) Inspect your code line by line.
2) Insert printf statements everywhere to give you hints where the problem is.
If you post the code here, I can see if I can help find it.
----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on
Vision, a tool for understanding your test data. Visit me at
www.cncsoftwaresolutions.com