Jump to content
Sign in to follow this  
Sandawg

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

Recommended Posts

Sandawg

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!

Share this post


Link to post
Share on other sites
Sandawg

Um... hello? 2 weeks later and not even a "can you clarify ___" response?

If I've put this in the wrong forum please tell me and I'll gladly move it.

Otherwise can somebody please respond? Anyone? Anyone?

Share this post


Link to post
Share on other sites
sotplug

Try _INetGetSource and saving the source to file?

Share this post


Link to post
Share on other sites
Sandawg

Hmm... same behavior. Don't suppose this could be a Windows thing?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.