Sign in to follow this  
Followers 0
Mayor

Error Allocating message

6 posts in this topic

I tried searching the forums for help with this to no avail... so here goes...

I have been porting some scripts from a previous version to one of the new betas. I have come across an error I have not seen before. It could be coincidental that it started happening after I converted to version v3.2.1.13, but maybe not. At the very beginning of a script I will get an error message box titled "AutoIt" with the text "Error Allocating" and the script will stop running. I even encountered this on a small 10 line script which had an infinite loop with a sleep and a pixelchecksum of a small region. I'm not sure if this has to do with memory availability or perhaps its a problem with the new beta that I am not aware of. Any help would be appreciated. Thanks

-M

Share this post


Link to post
Share on other sites



I tried searching the forums for help with this to no avail... so here goes...

I have been porting some scripts from a previous version to one of the new betas. I have come across an error I have not seen before. It could be coincidental that it started happening after I converted to version v3.2.1.13, but maybe not. At the very beginning of a script I will get an error message box titled "AutoIt" with the text "Error Allocating" and the script will stop running. I even encountered this on a small 10 line script which had an infinite loop with a sleep and a pixelchecksum of a small region. I'm not sure if this has to do with memory availability or perhaps its a problem with the new beta that I am not aware of. Any help would be appreciated. Thanks

-M

Attach a short script that gives the error and show a screen capure of the error you get ...

;)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Alright..... so I went about trying to reproduce the error but could not do so reliably. I have a script that does repoduce it consistently but I cannot put it on the board. I tried using it to make a test script but was unsuccessful. I have however uncovered a problem which is probably closely related to the error message.

I have attached a test script which has a pixelchecksum() which loops until something in the region changes. When running it on 3.2.1.13 there is an issue (it works fine on 3.2.0.1 though). Without touching anything on the screen, the loop will eventually terminate. On my machines, it always terminates on test #9967. It looks like after a certain number of tests, pixelchecksum() stops working for some reason. Maybe a memory issue? I tried looking on the boards to see if pixelchecksum() was touched in the betas but did not find anything about it. Any help would be great. Thanks.

checksumtest.au3

Share this post


Link to post
Share on other sites

It looks like a GDI leak. This code will do it in a matter of seconds:

While True
    PixelChecksum(0, 0, 1, 1)
WEnd

On Windows XP that quickly leaks a GDI resource and uses up all 10,000 available.

Share this post


Link to post
Share on other sites

It's amazing how much a single typo can destroy something. Actually, it wasn't even a typo, it was a bad symbol auto-completion which lead to the wrong object being destroyed which lead to the leak. Will be fixed in next version.

Share this post


Link to post
Share on other sites

Sounds great, thanks for the help and the fast response.

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