Jump to content











Photo
- - - - -

Downloader bug in WB053Beta10


  • Please log in to reply
54 replies to this topic

#51 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 24 January 2007 - 02:53 PM

Those are really good news, this means that it might be another code section causing these issues and not the presently used download function.


Look here:
function NetConnection(Var NetType : String): Boolean;



var

  flags: DWORD;

begin

  Result := InternetGetConnectedState(@flags, 0);

  if Result then

  begin

  if (flags and INTERNET_CONNECTION_MODEM) = INTERNET_CONNECTION_MODEM

then

  NetType := 'Modem';

  if (flags and INTERNET_CONNECTION_LAN) = INTERNET_CONNECTION_LAN then

  NetType := 'LAN';

  if (flags and INTERNET_CONNECTION_PROXY) = INTERNET_CONNECTION_PROXY

then

  NetType := 'Proxy';

  if (flags and INTERNET_CONNECTION_MODEM_BUSY) =

INTERNET_CONNECTION_MODEM_BUSY then

  NetType := 'Modem Busy';

  end;

end;

Maybe the value from InternetGetConnectedState is not working as supposed, this is a function that comes directly from wininet.dll

Anyone knows an alternative to know if wether a machine is online or not? :P

#52 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 24 January 2007 - 03:07 PM

Anyone knows an alternative to know if wether a machine is online or not? :P

Yep, just try to connect and when you get a timeout you're offline! :P

Don't know how you designed the downoader but i expect that if the downloader would detect that the computer is offline it would not try to download the components, like it used to do in my case. :P

#53 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 24 January 2007 - 03:10 PM

:P

Guess we need a faster process, otherwise the timeout would also occur on people's pacience to wait.. :P

#54 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 24 January 2007 - 03:14 PM

:P

Guess we need a faster process, otherwise the timeout would also occur on people's pacience to wait.. :P

Ping google. That's as fast and reliable as it gets.

#55 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 24 January 2007 - 03:39 PM

Ping google. That's as fast and reliable as it gets.


That sounds good enough for me, will add it on the next betas.. :P




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users