Modify

Opened 11 years ago

Closed 6 years ago

#2915 closed Bug (Fixed)

Map Memory Leak

Reported by: Mars (AutoIt.de) Owned by: Jon
Milestone: 3.3.15.3 Component: AutoIt
Version: 3.3.13.19 Severity: None
Keywords: Cc:

Description

Global $Map[], $aArray[1], $Timer = TimerInit()

While TimerDiff($Timer) < 5000
	$Map.Label = 5
	$aArray[0] = $Map
WEnd

Attachments (0)

Change History (3)

comment:1 by anonymous, 11 years ago

A better example (eats memory pretty quickly):

HotKeySet("{F1}", "Quit")

Global $Map = MapEmpty()

While True
   For $i = 1 To 100
      $Map[$i & "test"] = MapEmpty()
      For $j = 1 To 100
         $Map[$i & "test"][$j & "test"] = Random() > 0.5 ? True : False
      Next
   Next
WEnd

Func MapEmpty()
   Local $mMap[]
   Return $mMap
EndFunc

Func Quit()
   Exit
EndFunc

comment:2 by Jon, 10 years ago

Forwarded from Mars:

Replying to Mars (AutoIt.de):

Global $Map[], $aArray[1], $Timer = TimerInit()

While TimerDiff($Timer) < 5000
    $Map.Label = 5
    $aArray[0] = $Map
WEnd

I will explain it: run the script, check taskmanager, see lots of memory consumption.
It is impossible to write a script using arrays and maps together.
The actual BETA 3.3.15.0 also has this bug.

comment:3 by Jon, 6 years ago

Milestone: 3.3.15.3
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [12300] in version: 3.3.15.3

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


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