----boundary-LibPST-iamunique-1460907616_-_-
Content-type: text/plain
Helmut,
Just two questions:
1) Why did you choose to only link an integer to the view? There are at least three values that are interesting for the bar, namely min, cur and max (there's a good argument for the other properties, too, but even more for these three)? cur does not have a meaning aside from min and max, IMHO.
2) For all values of max >1207 and min = 0 and cur =max-1 a TRAP 20 happens in f.DrawRect at CtlsProgress.DrawBars, and size is negative!
I believe this comes from a calculation with INTEGERs greater than MAX(INTEGER). The following code shows the problem in a simplified manner:
MODULE PrivTestI;
IMPORT Out;
PROCEDURE Do*;
VAR
min,max,cur:INTEGER;
BEGIN
min:= MIN(INTEGER);
max:=MAX(INTEGER);
cur:=max+1;
HALT(40);
END Do;
END PrivTestI.
I would have assumed that the line cur:=max+1; would produce a trap, but instead, cur is MIN(INTEGER)!
So my next try was cur:=MAX(INTEGER)+1, which leads to a compilation error (number too large). From this I assume that type ranges are not generally cyclic in nature, and the behavior in the above code sample is simply an error of the runtime environment. IMHO, this IS problematic, since there is no easy way to check violation of type boundaries at runtime. The results are therefor unpredictable. And even if there were a way to check the violation, this would mean that in EVERY case one uses calculations, one would also have to check boundary violations. This blurs the code.
The above behavior I tested in BB 1.3, and in BB 1.4beta, which I only use for information (Since I use 1.3, I have problems using code that was designed for 1.4. I use the beta to understand the differences between 1.3 and 1.4 only).
Rene
=============René A. Krywult
-------------------------------------------------
Lege, lege, relege, ora, labora et invenies
___________________________________
-------------------------------------------
Versendet durch AonWebmail (webmail.aon.at)
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-1460907616_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBIZWxtdXQsXHBhcg0KXHBhcg0K
SnVzdCB0d28gcXVlc3Rpb25zOlxwYXINClxwYXINCjEpIFdoeSBkaWQgeW91IGNob29zZSB0byBv
bmx5IGxpbmsgYW4gaW50ZWdlciB0byB0aGUgdmlldz8gVGhlcmUgYXJlIGF0IGxlYXN0IHRocmVl
IHZhbHVlcyB0aGF0IGFyZSBpbnRlcmVzdGluZyBmb3IgdGhlIGJhciwgbmFtZWx5IG1pbiwgY3Vy
IGFuZCBtYXggKHRoZXJlJ3MgYSBnb29kIGFyZ3VtZW50IGZvciB0aGUgb3RoZXIgcHJvcGVydGll
cywgdG9vLCBidXQgZXZlbiBtb3JlIGZvciB0aGVzZSB0aHJlZSk/IGN1ciBkb2VzIG5vdCBoYXZl
IGEgbWVhbmluZyBhc2lkZSBmcm9tIG1pbiBhbmQgbWF4LCBJTUhPLiBccGFyDQpccGFyDQoyKSBG
b3IgYWxsIHZhbHVlcyBvZiBtYXggPjEyMDcgYW5kIG1pbiA9IDAgYW5kIGN1ciA9bWF4LTEgYSBU
UkFQIDIwIGhhcHBlbnMgaW4gZi5EcmF3UmVjdCBhdCAgQ3Rsc1Byb2dy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