msdn上说:
When you assign a shorter string to an existing string that originally contained a longer string, the assignment corrupts the heap.
例如
CString str, str2;
str = "abcdefghijklmnopqrstuvwxyzabcdefghij" ;
str2 = str;
str = "zyxw" ;
有可能出现这种debug error
When you assign a shorter string to an existing string that originally contained a longer string, the assignment corrupts the heap.
例如
CString str, str2;
str = "abcdefghijklmnopqrstuvwxyzabcdefghij" ;
str2 = str;
str = "zyxw" ;
有可能出现这种debug error
cstring iFileName="d:\zz11\\gif\\0001.bmp";
CxImage * xImage11 = new CxImage();
xImage11->ReadFile(iFileName,CXIMAGE_FORMAT_BMP);
xImage11->SaveFile(iFileName,CXIMAGE_FORMAT_GIF);
delete xImage11 ; <-------出上面的错