Jump to content

Inetget + "automatically detect proxy settings" = HUGE RAM usage


Recommended Posts

I'm using Winter's WeeWar Notifier (see his post here) and I was surprised to see it using 600+ MB of RAM!

I did some testing and it looks like the problem happens when he calls InetGet() and I have my IE proxy settings set to "automatically detect proxy settings". If I uncheck that option and manually code in the proxy config then there is no problem. But as soon as you check that box every call to InetGet() sucks another 30+ MB of RAM away.

The problem doesn't occur if you don't save the download to a file, but then what good is that?

I'm using v 3.2.10.0 of autoit, WinXP SP2, IE 7.

To replicate you have to set up an auto-proxy, but with that this code snippet shows the behavior (look in task manager at autoit3.exe memory usage)

CODE
while 1

HttpSetProxy(0)

$testResults = InetGet ("http://www.microsoft.com","d:\output.htm", 1,1) ; <- bad!

;also bad -> InetGet ("http://www.microsoft.com","d:\output.htm", 1,1)

;also bad -> InetGet ("http://www.microsoft.com","d:\output.htm")

;good! but doesn't do anything useful -> InetGet ("http://www.microsoft.com")

$button = MsgBox(1,"","go again?")

if $button == 2 Then ExitLoop

WEnd

So... what gives? Is this a bug in how InetGet() works? Are there any alternatives for pulling a file down that do not have this problem? Any help appreciated. Thanks!

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...