Jump to content

Recommended Posts

Posted

Hi All,

I'm still fairly new to this board, and just board search has helped a lot lately in general, requiring me not to post much.

My Question now is, if I create an array (and more specifically a 2 dimensional array) that I'm checking, and using the "ReDim" function as needed to increase the size as need-be, do I need to delete the array at the end of it's scope to maintain memory management?

I'm most accustomed to C++ with pointers and new-ing them into arrays, and the importance of deleting them at the end of the code. I as just wondering if their is a way to do this or if there is a Garbage collecting system in effect.

I tried the old RTFM but there's nothing really on this topic and I felt I should ask to clarify this.

Thanks for all your help!

Posted

AutoIt cleans up everything when the code ends.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

As well as destroying an array by reassigning a single value e.g.

Local $aArray[5]
; Enter code to manipulate Array.
$aArray = 0

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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...