Modify

Opened 5 years ago

Last modified 4 years ago

#2915 new Bug

Map Memory Leak

Reported by: Mars (AutoIt.de) Owned by:
Milestone: 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 (2)

comment:1 Changed 5 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 4 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.

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 new The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.