I have what I think is an easy problem. For some reason the following code generates the exception, \"String must be exactly one character long\".
int n = 0; for
Convert.ToChar(string) if it is empty string lead this error. instead use cchar()