Mantis - Squeak
Viewing Issue Advanced Details
6514 Morphic minor always 05-25-07 18:30 05-25-07 18:30
kks  
 
normal  
new 3.10  
open  
none    
none  
0006514: Turning on showEvents triggers a DNU error
In 3.10 and 3.9, doing

HandMorph showEvents: true

throws up a MNU:
UndefinedObject(Object)>>doesNotUnderstand: #+
        Receiver: nil
        Arguments and temporary variables:
                aMessage: + 15
        Receiver's instance variables:
nil

Point>>+
        Receiver: 0@nil
        Arguments and temporary variables:
                arg: 0@15
        Receiver's instance variables:
                x: 0
                y: nil

HandMorph>>handleEvent:
        Receiver: a HandMorph(3728)
        Arguments and temporary variables:
                anEvent: [411@467 mouseUp 30913]
                evt: [411@467 mouseUp 30913]
                ofs: nil

MNU is triggered by nil value for ofs at the second check for ShowEvents. ShowEvents is checked in the beginning and in the end. ofs is computed only in the first block. ofs needs to be recomputed in each block because handleEvents makes blocking calls in between and ShowEvents could be set to true meanwhile. The attached cs recomputes ofs in each block.
 HandMorphFix.1.cs.gz [^] (880 bytes) 05-25-07 18:30

There are no notes attached to this issue.