Quote:
> What line of what file is asserting? Are the values of rStr, and
> lpStr what you expect?
>> Hi:
>> BOOL bRet;
>> bRet=InternetSetOption(0, INTERNET_OPTION_END_BROWSER_SESSION, 0, 0);
>> if(!bRet)
>> return;
>> CString rStr,strErr;
>> //GetSpeFolder function get the cookies path.
>> if(GetSpeFolder(COOKIES,rStr)){
>> LPTSTR lpStr=TransString(rStr);//TransString function convert
>> //CString class data to LPTSTR
>> //DelDir function delete the specified folder's contents.
>> if(!DelDir(lpStr,GetSafeHwnd(),TRUE,strErr))
>> AfxMessageBox(strErr);
>> }
>> else
>> AfxMessageBox(rStr);
>> rStr.ReleaseBuffer();
>> When execute this program,produce these errors:"Debug Assertion
>> Failed,...Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"
>> Could you find it?
Hi,David Crow
Thank you in advance.The values of rStr, and lpStr are ok.When execute
the DelDir function,it produce errors.If can delete the cookies folder's
contents by the SHFileOperation() after getting the cookies path?At the
begining,is it ok about the InternetSetOption function ?