Sign in to follow this  
Followers 0
vaish

Memory leak in AutoIT Functions (ObjCreate/ObjGet)

9 posts in this topic

Hi,

I have a script of creating IMacros object using ObjCreate/ObjGet function.

If i run the script continuously i am seeing huge memory leak.

Do we have any fix for Memory leak in AutoIT???

Also i found thread in AutoIT forum related to Memory leak in ObjGet/ObjCreate function.

I am using latest AutoIT tool only.

Please let me know if we have any fix for memory leak in AutoIT.

The script is:

;Creating IMacros Object

Global $iMacros = ObjCreate("IMacros")

Global $iRet

If Not IsObj($iMacros) Then

KConsole("IMacro Object not created successfully")

Share this post


Link to post
Share on other sites



The thread you refer to is nearly 6 years old. The don't mention the AutoIt version they use but I know that there have been significant improvemtns regarding the COM interface.

But it looks like it was "fixed in 3.2.11.2." - thats the last sentence of the thread you refere to.

Which version of AutoIt do you use?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I am using 3.3.6.1

Share this post


Link to post
Share on other sites

Could you try the latest production version 3.3.8.1 or even the latest beta 3.3.9.4?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

No... I haven't try

Share this post


Link to post
Share on other sites

Give at least 3.3.8.1 a try. The history talks about some removed meory leaks.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

its about ObjGet/ObjCreate Memory leaks?

Share this post


Link to post
Share on other sites

According to the history file of 3.3.8.1:

  • Fixed #1565: Arrays as object properties; memory leak.
  • Fixed: ObjCreate() memory leak when using a remote computer.
  • Fixed: Potential memory leak in COM error event code.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Sure... I will try and will let you know...

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0