Jump to content

mrmory leak?


Go to solution Solved by botanic,

Recommended Posts

Posted

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   ;

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
×
×
  • Create New...