You could have memory corruption elsewhere in the app making it such that it only appears to be failing on the CString line.

As a test, insert some temporary lines of code above the CString line....