Modify

Opened 13 years ago

Closed 12 years ago

#2317 closed Bug (Works For Me)

ObjCreate Memory Leak

Reported by: IanN1990 Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: Cc:

Description

According to the Helpfile. Setting any Object with a number or string is ment to release it from memory.

#NoTrayIcon

While 1
sleep(250)
Make()
WEnd

Func Make()
Local $o_object = ObjCreate("InternetExplorer.Application")
$o_object.quit
$o_object = "String"
EndFunc

As you can see by the code above, the Objcreate is called inside a function. The Object itself is set to a string. So the memory should be released.

Yet if you run the script, along side task-manager. You will see every time the function is called the memory for the autoit script goes up.

Attachments (0)

Change History (4)

comment:1 by Jon, 13 years ago

Resolution: Rejected
Status: newclosed

comment:2 by J-Paul Mesnage, 13 years ago

Resolution: Rejected
Status: closedreopened

The problem is still ther with the 3.3.9.19 so I reopen the ticket

Last edited 12 years ago by J-Paul Mesnage (previous) (diff)

comment:3 by Jon, 12 years ago

Seems to be an IE thing rather than an AutoIt thing. This script has constant memory use and it's doing a lot more COM interaction

While 1
sleep(100)
Make()
WEnd


Func Make()
; Counting the number of open shell windows

Local $oShell = ObjCreate("shell.application") ; Get the Windows Shell Object
Local $oShellWindows = $oShell.windows ; Get the collection of open shell Windows

If IsObj($oShellWindows) Then
    Local $sString = "" ; String for displaying purposes

    For $oWnd In $oShellWindows ; Count all existing shell windows
        $sString &= $oWnd.LocationName & @CRLF
    Next
EndIf

$oShell = "String"
EndFunc

comment:4 by Jon, 12 years ago

Resolution: Works For Me
Status: reopenedclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.