Jump to content
Sign in to follow this  
Cyberworld

Plugins and memory leaks...

Recommended Posts

Cyberworld

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?

Share this post


Link to post
Share on other sites
Cyberworld

Great!

...and how about the other memory used? (My second question above).

Share this post


Link to post
Share on other sites
Cyberworld

Excellent :nuke:

..and thanks for taking your time to fix all those problems :P

Share this post


Link to post
Share on other sites
corz

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.