// find new size
nNewArraySize = StrNewSizeForCharReplace(pszString, pszFindString, pszReplaceString);
// nNewArry size is 1063
// alllocate memory
pszTemp= (unsigned char*)malloc(nNewArraySize + 1);
// add 1063 character in to pszTEmp
// 1063
nLength = strlen(pszTEmp) // length is 1063
free(pszTemp);
// Heap memory exception
How can remove this exception