Jump to content
Sign in to follow this  
botanic

mrmory leak?

Recommended Posts

botanic

I have the following test code and when i run it the memory used by autoit just keeps going up and up is there something i am doing wrong?

;#NoTrayIcon
#RequireAdmin
#region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Version=Beta
#AutoIt3Wrapper_Icon=x2stor.ico
#AutoIt3Wrapper_UseUpx=n
#endregion ;**** Directives created by AutoIt3Wrapper_GUI ****

#include <x2stor_lib.au3>
Dim $MainLog = @AppDataCommonDir & "\X2Stor\test.log"
While 1

    test('http://google.com', "")

WEnd

Func test($sURL, $sData = "")

    Local $oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")

    $oHTTP.Open("POST", $sURL, False)
    If (@error) Then Return SetError(1, 0, 0)

    $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")

    $oHTTP.Send($sData)
    If (@error) Then Return SetError(2, 0, 0)

    If ($oHTTP.Status <> $HTTP_STATUS_OK) Then Return $oHTTP.ResponseText

    Return $oHTTP.ResponseText

EndFunc   ;

Share this post


Link to post
Share on other sites
botanic

nevermind seems i missed something...

thats not what is leaking

Edited by botanic

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.