一般问题是:
已经没数据了,你还要读,或者试图读取并不存在的数据 就会出错;报这种错误!!!
举个函数如:
C++ Code
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
// 数据成员序列化 void CFileDLoadInfo::Serialize( CArchive& ar ) { CObject::Serialize( ar ); if ( ar.IsStoring() ) { ar << prototcal << threadCnt << savepath << downloadLink << strFileNames << strFileType << strFileSize << strFileProgress << strFileUseTime << strFileCreateDate << dwFileSize << dwDownloadSize << bResume << bSupportResume /*<< tempFile << cfgFile*/; // 注释掉的部分 //Store other members } else { ar >> prototcal >> threadCnt >> savepath >> downloadLink >> strFileNames >> strFileType >> strFileSize >> strFileProgress >> strFileUseTime >> strFileCreateDate >> dwFileSize >> dwDownloadSize >> bResume >> bSupportResume >> tempFile >> cfgFile; //Polymorphic reconstruction of persistent object //load other members } return; } |