Discussion:
Titolo: IE7 wininet.dll bug
(too old to reply)
Giorgio
2007-01-25 09:54:01 UTC
Permalink
I have a lot of programs that are using the wininet.dll (InternetReadFile,
ecc.).
With IE 5.0 and IE 6.0 on WinXP sp2 there aren't problems.
With IE 7.0 the programs DON'T WORK, the InternetReadFile() return 0 and the
download stop.

My question is: Microsoft is working about this problem ?

Thanks
Max
2007-01-25 12:24:09 UTC
Permalink
Insert GetLastError after InternetReadFile and post the error code here.
Hopefully it will help to find out the problem.
BOOL bResult = InternetReadFile(...);
DWORD dwError;
if (bResult)
{
dwError = ERROR_SUCCESS;
}
else
{
dwError = GetLastError();
}
Post by Giorgio
I have a lot of programs that are using the wininet.dll (InternetReadFile,
ecc.).
With IE 5.0 and IE 6.0 on WinXP sp2 there aren't problems.
With IE 7.0 the programs DON'T WORK, the InternetReadFile() return 0 and the
download stop.
My question is: Microsoft is working about this problem ?
Thanks
Giorgio
2007-01-29 10:54:00 UTC
Permalink
The problem is the default of INTERNET_OPTION_RECEIVE_TIMEOUT, it was 0 (
infinitely) for IE 6.0 (and before). The default of IE 7.0 is 30 (sec) so if
your task on IIS is longer than 30 seconds the timeout stops the connection.
Fortunately, I have the source code of the programs that use the Wininet.dll
and I have corrected the code.

Thank
Giorgio
Michele
2007-02-27 14:53:41 UTC
Permalink
Could you please write a c# sample of declaration and use of the
InternetSetOption API with INTERNET_OPTION_RECEIVE_TIMEOUT flag ?

thanks
Post by Giorgio
The problem is the default of INTERNET_OPTION_RECEIVE_TIMEOUT, it was 0 (
infinitely) for IE 6.0 (and before). The default of IE 7.0 is 30 (sec) so if
your task on IIS is longer than 30 seconds the timeout stops the connection.
Fortunately, I have the source code of the programs that use the Wininet.dll
and I have corrected the code.
Thank
Giorgio
Giorgio
2007-02-27 15:16:10 UTC
Permalink
To set the INTERNET_OPTION_RECEIVE_TIMEOUT to 0 (like the default of IE6), I
use this code (in Visual FoxPro).
* === Start
m.dwTimeoutSecs = 0
llRetVal=InternetSetOption(THIS.hIPSession,;
INTERNET_OPTION_RECEIVE_TIMEOUT, ;
@dwTimeoutSecs, 4 )
* === End

I hope that is enough
Giorgio
Post by Michele
Could you please write a c# sample of declaration and use of the
InternetSetOption API with INTERNET_OPTION_RECEIVE_TIMEOUT flag ?
thanks
Loading...