- window minimizing bug in blackbox 1.5?

From: Martin, Marc <"Martin,>
Date: Thu, 14 Dec 2006 13:53:04 -0800

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

> 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.

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

Here is a short demonstration case:

**************************************************************
MODULE PrivTest;

IMPORT Views, Log, StdCmds, Properties;

TYPE
  View = POINTER TO RECORD( Views.View ) END;


PROCEDURE ( v: View ) Restore*( f: Views.Frame; l, t, r, b: INTEGER );
BEGIN
  Log.String( "r = " ); Log.Int( r );
  Log.String( ", b = " ); Log.Int( b );
  Log.Ln;
END Restore;


PROCEDURE ( v: View ) HandlePropMsg( VAR msg: Properties.Message );
BEGIN
  WITH msg: Properties.ResizePref DO
    msg.horFitToWin := TRUE;
    msg.verFitToWin := TRUE
  ELSE
  END
END HandlePropMsg;


PROCEDURE Do*;
VAR v: View;
BEGIN
  NEW(v);
  Views.Deposit( v );
  StdCmds.Open;
END Do;


END PrivTest.

**************************************************************

To run the demonstration case, execute PrivTest.Do, then
minimize the newly-opened window.

In Blackbox 1.4, the following appears in the log:

  r = 6130925, b = 4016375
  r = 6130925, b = 4016375
  r = 1397000, b = 101600

In Blackbox 1.5, the following appears in the log:

  r = 6130925, b = 3863975
  r = 6130925, b = 3863975
  r = 2147347123, b = 2147347123

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

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

Marc

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


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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNT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SEVMUCBv
ciBVTlNVQlNDUklCRSB0byBibGFja2JveEBvYmVyb24uY2h9fQBFTVNXSVRIVEhF


----boundary-LibPST-iamunique-554324063_-_---
Received on Thu Dec 14 2006 - 22:53:04 UTC

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