changing to release mode just tells it not to run the assert commands. that is a TERRIBLE idea because now something is going wrong, its just not telling you! It will come back to bite you for sure!
Use step through in debug mode to see which line the assert fails and let us know.
Dave