Mayor Posted November 28, 2006 Posted November 28, 2006 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
Developers Jos Posted November 28, 2006 Developers Posted November 28, 2006 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-MAttach a short script that gives the error and show a screen capure of the error you get ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Mayor Posted November 29, 2006 Author Posted November 29, 2006 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
Valik Posted November 29, 2006 Posted November 29, 2006 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.
Valik Posted November 29, 2006 Posted November 29, 2006 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.
Mayor Posted November 29, 2006 Author Posted November 29, 2006 Sounds great, thanks for the help and the fast response.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now