Log in

View Full Version : access violation



sherlockmeister
07-30-2007, 04:42 PM
how come whenever i use FindBitmap function in a loop i get a access violation?

example

while (FindBitmapToleranceIn(X, Y, WhatEver, 0, 0, 100, 100)) do
Sleep(100);

or

repeat
Sleep(100);
until (FindBitmapToleranceIn(X, Y, WhatEver, 0, 0, 100, 100));

edit: scar tags....

JAD
07-30-2007, 06:07 PM
Probably because you have a procedure called LoadBitmaps or something and you are not calling for it in the main loop, or something related to that.