Re: unsolicited entry in the folder "Temporary Internet Files"



Actually, as far as I know it is SUPPOSED to create the page in the temporary internet
folder.

By the way, it is very poor practice to call user-defined Windows messages WM_ anything;
WM_ is a prefix reserved for use by Microsoft; you should adopt a different prefix for
user-defined messages. Two of the most common are UWM_ and WMU_ .


On Fri, 8 Feb 2008 15:10:12 -0800 (PST), Kai Sandner <ks@xxxxxxxxxxxx> wrote:

Hello,
I am working on a programme which browses web sites and runs under XP.

The http download is as follows:

pServer = Isession -> GetHttpConnection(strServerName, nPort);
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,
strObject, NULL, 1, NULL, NULL, dwHttpRequestFlags);

pFile->SendRequest();
pFile->QueryInfoStatusCode(dwStatusCode);
if(dwStatusCode == 200)
{


pFile -> QueryInfo(HTTP_QUERY_LAST_MODIFIED, &sysT);
status.lastMod = sysT;
if(DBlastMod == status.lastMod) //URL content has not changed
since the last visit
{
_BrowseInfo.CSmessage = "Not changed: ";
_BrowseInfo.CSmessage += URLadr;
pWnd -> PostMessage(WM_Protocol, 0, 0);
}
else
{

//***************************************
//a new entry (copy of in the curent URL) in the folder
"Temporary Internet Files" is created here

int bc = 1;
while (bc > 0)
{
try
{
bc = pFile->Read(buftmp,sizeof(buftmp));
status.Bsucces = TRUE;
}
catch (CInternetException *Iex)
{
_BrowseInfo.i_failedDownload ++;
status.Bsucces = FALSE;
Iex -> ReportError();
Iex -> Delete();
break;
}
catch(CFileException * pEx)
{
_BrowseInfo.i_failedDownload ++;
status.Bsucces = FALSE;
Iex -> ReportError();
pEx -> Delete();
break;
}

if(status.Bsucces == TRUE)
{
for(int c = 0; c < bc; c++)
{

buffer[nBytesRead + c] += buftmp[c];
}
nBytesRead += bc;
}

}

}

At the remarked place something - maybe the Internet Explorer -
stores the current website unsolicited to
the "Temporary Internet Files" folder.
It is a multithreaded application and is has occasionally runtime
errors exactly on
the same place.
Thanks for any clue how to avoid this useless duplicate storing!
Kai Sandner
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Low Disk space on C drive
    ... A default setting which could be wasteful is that for temporary internet ... especially if you do not store offline copies on disk. ... the text of the folder name appears in blue characters. ... select Properties, General, Advanced and check the box before Compress ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: OWA display problems...
    ... There must have been a corrupt file in my Temporary Internet Files folder. ... I went into Windows Explorer and deleted all files in that folder except for ... but this time the fix didn't work. ...
    (microsoft.public.exchange.clients)
  • Re: My Computer is empty.
    ... Okay now perform this operation from this website below ... Select the Tools menu and click Folder ... Now its time to start your computer in Safe Mode ... Okay once in safe mode do the following: Clear out the Temporary internet ...
    (microsoft.public.windowsxp.basics)
  • Re: recovering temporary internet files.
    ... document to a 'temporary internet files' folder. ... but once I reach "temporary internet folders" it automatically shuts ... *.doc you will get a listing of all of the Microsoft Word documents on ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: JPEGS versus BITMAPS. tried everything!
    ... At the run command type this command %temp% and then a folder will open. ... you would also want to increase the size of the temporary internet folder.to ... > bitmap" for a couple weeks now. ... > repeatedly told me that I cannot delete these folders for one of two reasons ...
    (microsoft.public.windowsxp.help_and_support)

Loading