- window minimizing bug in blackbox 1.5?

From: [at]} <Alexander>
Date: Tue, 16 Jan 2007 04:36:29 +0600

----boundary-LibPST-iamunique-1757571409_-_-
Content-type: text/plain

Hello, Marc!

>> I've been trying to track down a recently discovered bug in
>> one of my Blackbox programs. So far, it appears to be a bug
>> introduced into the Blackbox framework at v1.5. When I
>> minimize ne of my windows in a particular application, I get
>> a trap.

MM> Following up on my previous message about a possible bug introduced
MM> in Blackbox 1.5, I see that I only enounter this problem if I create
MM> a new view with a ResizePref of horFitToWin=TRUE / verFitToWin=TRUE.

...

MM> In Blackbox 1.5, the following appears in the log:

MM> r = 6130925, b = 3863975
MM> r = 6130925, b = 3863975
MM> r = 2147347123, b = 2147347123

MM> Those huge values in the Blackbox 1.5 log are what's causing
MM> my programs to crash when the window is minimized.

MM> I'd say that this is a bug in Blackbox 1.5...

  This is an interesting feature. I looked into it. It turned out that
  when a window is minimized its method SetSize is called like this
  in HostWindows module:

  PROCEDURE (w: Window) SetSize* (width, height: INTEGER);
  .......
    IF (width = 0) & (height = 0) THEN w.SetSize^(minimized, minimized)
    ELSE
      w.SetSize^(width, height);

  The constant HostWindows.minimized = MAX(INTEGER). That's the source
  of problems. Later on, the procedure Views.ValidateRoot tries to
  repaint a region with coordinates (0, 0, 2147474123, 2147474123).

  I don't know why did they choose to mark minimized window client
  area size with biggest available width and height (instead of 0 or
  -1).
  
  The solutions is quite simple:
  - set constant HostWindow.minimized = 0;
  - compile HostWindows;
  - restart BlackBox.

  Thank you for the bug!
  
---=====---
 Alexander

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy


----boundary-LibPST-iamunique-1757571409_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciB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FUikuIFRoYXQncyB0aGUgc291cmNlXHBhcg0KICBvZiBwcm9ibGVtcy4gTGF0
ZXIgb24sIHRoZSBwcm9jZWR1cmUgVmlld3MuVmFsaWRhdGVSb290IHRyaWVzIHRvXHBhcg0KICBy
ZXBhaW50IGEgcmVnaW9uIHdpdGggY29vcmRpbmF0ZXMgKDAsIDAsIDIxNDc0NzQxMjMsIDIxNDc0
NzQxMjMpLlxwYXINClxwYXINCiAgSSBkb24ndCBrbm93IHdoeSBkaWQgdGhleSBjaG9vc2UgdG8g
bWFyayBtaW5pbWl6ZWQgd2luZG93IGNsaWVudFxwYXINCiAgYXJlYSBzaXplIHdpdGggYmlnZ2Vz
dCBhdmFpbGFibGUgd2lkdGggYW5kIGhlaWdodCAoaW5zdGVhZCBvZiAwIG9yXHBhcg0KICAtMSku
XHBhcg0KICBccGFyDQogIFRoZSBzb2x1dGlvbnMgaXMgcXVpdGUgc2ltcGxlOlxwYXINCiAgLSBz
ZXQgY29uc3RhbnQgSG9zdFdpbmRvdy5taW5pbWl6ZWQgPSAwO1xwYXINCiAgLSBjb21waWxlIEhv
c3RXaW5kb3dzO1xwYXINCiAgLSByZXN0YXJ0IEJsYWNrQm94LlxwYXINClxwYXINCiAgVGhhbmsg
eW91IGZvciB0aGUgYnVnIVxwYXINCiAgXHBhcg0KLS0tPT09PT0tLS1ccGFyDQogQWxleGFuZGVy
XHBhcg0KXHBhcg0KLS0tIEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVO
U1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJvbi5jaH19ADQwOTIwMDZBSVA=


----boundary-LibPST-iamunique-1757571409_-_---
Received on Mon Jan 15 2007 - 23:36:29 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:32:02 UTC