Yep I've had this happen but it's been a very, very long time. Reading over the post by the bank that makes sense to me and would explain why I've also not seen that error occur in quite some time. Also from reading posts about OSBuddy and the substantial amount of memory it uses I'd have to agree with that.
Anywho, if you're able to reproduce it, first try replacing that function with this one:
Simba Code:
function TColEx.findIn(Area: TBox; var Point: TPoint): Boolean;
var
tmpCTS : Integer;
begin
tmpCTS := getToleranceSpeed();
if ((Self.hMod <> 0.2) or (Self.sMod <> 0.2)) then
begin
setColorToleranceSpeed(2);
setToleranceSpeed2Modifiers(Self.hMod, Self.sMod);
end;
checkAreaBounds(Area);
try
Result := findColorTolerance(Point.x, Point.y, Self.Col, Area.X1, Area.Y1, Area.X2, Area.Y2, Self.Tol);
except
writeln('Something went wrong in TColEx.findIn()');
end;
setColorToleranceSpeed(tmpCTS);
end;
In theory that should catch the error so, at least, your script won't crash but whatever function is looking for that TColEx will fail.