Wizzup?
2009-11-15 20:52:42
Hoi,
Raymond and I have been adding some nice error handling in Mufasa.
We've also nested it deeply in the all Client/Image stuff, so you can't access non existing pixels, etc.
Anyway… you can also give Bitmaps a name, and afaik if you don't free them, the names will be printed at the end of the scripts, with the message that they haven't been freed. Same for files (name = file path).
DTM still needs a bit of a rewrite…
Any other suggestions to add more user friendly error handling? Something we may have overlooked, etc?
Raymond and I have been adding some nice error handling in Mufasa.
program new;
var x:integer;
begin
findbitmapin(-1,x,x,0,0,100,100);
end.
Compiled succesfully in 8 ms.
Error: Exception: The bitmap[-1] does not exist at line 4
program new;
begin
movemouse(-1,0);
end.
Compiled succesfully in 8 ms.
Error: Exception: SetMousePos: X, Y (-1, 0) is not valid at line 3We've also nested it deeply in the all Client/Image stuff, so you can't access non existing pixels, etc.
Anyway… you can also give Bitmaps a name, and afaik if you don't free them, the names will be printed at the end of the scripts, with the message that they haven't been freed. Same for files (name = file path).
DTM still needs a bit of a rewrite…
Any other suggestions to add more user friendly error handling? Something we may have overlooked, etc?