473,385 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Clear IExplorer Cache

Hi,

I need an application which clears the cache of the internet explorer
and found the code for this on
http://support.microsoft.com/kb/311289/en

Problem: The end of the loop below is never reached so the program is
blocked.
Reason: Marshal.GetLastWin32Error()
always returns code 87 ("The parameter is incorrect.") which doesn't
match the expected code in the constant ERROR_NO_MORE_ITEMS (Code 259
- "No more data
is available")

While(True)
....
If (Not returnValue And ERROR_NO_MORE_ITEMS.Equals
(Marshal.GetLastWin32Error())) Then
Exit While
End If
....
End While

What does "The parameter is incorrect" mean? Why does the function
return this code?
BTW: I tested the program on several machines - sometimes it worked,
sometimes it crashed... :-(

Thanks,
Norman

P.S.: Sorry for my bad english ;-)

Mar 27 '07 #1
1 2274
Never had any errors with that KBase article

--
Newbie Coder
(It's just a name)
"Norman Chong" <no*********@freenet.dewrote in message
news:11**********************@p15g2000hsd.googlegr oups.com...
Hi,

I need an application which clears the cache of the internet explorer
and found the code for this on
http://support.microsoft.com/kb/311289/en

Problem: The end of the loop below is never reached so the program is
blocked.
Reason: Marshal.GetLastWin32Error()
always returns code 87 ("The parameter is incorrect.") which doesn't
match the expected code in the constant ERROR_NO_MORE_ITEMS (Code 259
- "No more data
is available")

While(True)
...
If (Not returnValue And ERROR_NO_MORE_ITEMS.Equals
(Marshal.GetLastWin32Error())) Then
Exit While
End If
...
End While

What does "The parameter is incorrect" mean? Why does the function
return this code?
BTW: I tested the program on several machines - sometimes it worked,
sometimes it crashed... :-(

Thanks,
Norman

P.S.: Sorry for my bad english ;-)

Mar 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Frasse | last post by:
Hello all! If a client has run a program with url like this: http://server/HelloWorld.exe, then the assembly HelloWorld.exe will be cached in Assembly's Download Cache. But if then a new version...
3
by: The Pritchard | last post by:
I want the user to be able to save the information displayed on a dynamically created page. When I write a script like the following: <SCRIPT> winNew = window.open("","test");...
2
by: Romy Sreedharan | last post by:
Hello, I am wondering whether there is a mechanism to clear the Hard Disk Cache using C#? This is for O.S Windows XP regards romy
2
by: Les Caudle | last post by:
When displaying a database driven product page, I cache the page using: <%@ OutputCache Duration="86400" VaryByParam="ProductID" %> which works fine UNLESS I change the pricing or description...
3
by: Janning Vygen | last post by:
Hi, i am testing a few queries in my postgresql DB. The first query after reboot is always slower because of an empty OS page/file cache. I want to test my queries without any files in the...
2
by: ESmith | last post by:
How can I clear the current session cache of previously visited webpages? That is, say I start up my app (with browser component), point to www.cnn.com, click on several links, then I want to...
5
by: Steve JORDI | last post by:
Hi, I have a strange behavior when using IExplorer over FireFox. There is an html form that asks for the name of a city and has a dedicated field for that with a submit button next to it. In...
5
by: Steve JORDI | last post by:
Just a question using images as submit buttons and PHP4.4.4. It seems that my code correctly works in FireFox but not in IExplorer. For example, I have a FORM with 2 buttons called "search" and...
1
by: shashi shekhar singh | last post by:
Respected Sir, I am currently facing a problem in disabling the back Button of IExplorer. Actually I have taken two UpdatePanel on the page(Page A). At first when Page(Page A ) loads then Update...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.