04-02-2012, 02:42 PM
Error "failed" can have several reasons, but with your code only this is real:
Cannot get bitmap or screen pixels. Maybe not enough memory, or too many GDI object handles, or some other reason that I don't know. Need 4 bytes for each pixel. Try to make the search area smaller. Maybe something wrong with Windows memory settings.
Cannot get bitmap or screen pixels. Maybe not enough memory, or too many GDI object handles, or some other reason that I don't know. Need 4 bytes for each pixel. Try to make the search area smaller. Maybe something wrong with Windows memory settings.