SRL Archive - SRL Bugs

CountColor "Range check error"


footballjds

2012-03-09 09:56:27

got a range check error: Exception: Range check error at line 203


function Victory: boolean;
begin
result := CountColor(clBlack, 211, 404, 305, 421) = 159;//line 203
end;

Coh3n

2012-03-12 00:48:22

CountColor is a part of Simba, not SRL. That being said, I'm not sure why you're getting an error. Try putting brackets around it? Shouldn't matter, but you never know.

Daniel

2012-03-18 04:43:43

The "range check error" is what FPC (what Simba was made in, like Delphi) calls an "out of range error". This means that it is a problem within Simba itself. Obviously it has something to do with Simba trying to access an undefined area of the Client screen (e.g. trying to access point (-1, -1) on a bitmap).

Coh3n

2012-03-18 14:57:50

I'm pretty sure this is fixed in Simba 990.