Jump to content
Sign in to follow this  
vaish

Memory leak in AutoIT Functions (ObjCreate/ObjGet)

Recommended Posts

vaish

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
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

I am using 3.3.6.1

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

No... I haven't try

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

its about ObjGet/ObjCreate Memory leaks?

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

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  

×