Jump to content

Plugins and memory leaks...


Recommended Posts

The plugins seems to leak memory (Or are there a reason for that?)

For example If I call the following function in a loop:

$handle = PluginOpen("example.dll")

for $x = 1 to 2500000
$retval = PluginAdd("10", "50") 
next
PluginClose($handle)

Everytime the loop repeats the used memory will increase, a few hundred k's.

Another thing... Do I need to free small buffers if I have allocated like this:

unsigned char pBuffer[32768];

Should I use "AU3_FreeString()" to free this or will that be done automatically then the plugin is finished?

Link to comment
Share on other sites

  • 6 years later...

I am experiencing this behaviour with AutoIt 3.3.8.1 and the plugin SDK from 09-Jun-2009 on both 32 and 64 bit platforms.

After five million function calls (that simply return) my app is using 400MB+

Is there a later SDK I should be using?

;o) Cor

Edited by corz

nothing is foolproof to the sufficiently talented fool..

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...