Is it good to construct CString from char[] ?
char R[5000];
CString s = R;
In these lines sometimes I have exception:
Windows has triggered a breakpoint in tst.exe.
This may be due to a corruption of the heap, which indicates a bug in tst.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while tst.exe has focus.
The output window may have more diagnostic information
CStringobject with junk data?char[]holds a zero-terminated string.