Modify

Opened 10 years ago

Closed 5 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 Changed 10 years ago by anonymous

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 Changed 9 years ago by Jon

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 Changed 5 years ago by Jon

  • Milestone set to 3.3.15.3
  • Owner set to Jon
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [12300] in version: 3.3.15.3

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.