Subject: [BUG]UndefinedObject(Object)>>doesNotUnderstand:

Sean Charles scharles at nildram.co.uk
Thu Apr 4 08:56:18 UTC 2002


This has been a long standing 'niggle' with me and I wonder if it has
bothered anybody else or it's my fault! Once I've hit the problem it always
comes back, although non-fatal it is puzzling. Here is a dump of the
situation from the walkback window...

----------- dump -------------
Image version: Squeak3.1beta
latest update: #4478
Current Change Set: MusicSystem

VM version: Squeak3.1alpha of 4 February 2001 [latest update: #3748]
for: Win32

Receiver: an EventSensor

Instance variables:
mouseButtons:  0
mousePosition:  194 at 275
keyboardBuffer:  a SharedQueue
interruptKey:  2094
interruptSemaphore:  a Semaphore(a Process in
EventSensor(InputSensor)>>userInterruptWatcher)
eventQueue:  a SharedQueue
inputProcess:  a Process in Semaphore>>waitTimeoutMSecs:
inputSemaphore:  a Semaphore(a Process in Semaphore>>waitTimeoutMSecs:)

Method (temp) variables:

Stack:
UndefinedObject(Object)>>doesNotUnderstand:
EventSensor>>nextEventFromQueue
EventSensor>>nextEvent
HandMorph>>processEvents
[] in WorldState>>doOneCycleNowFor:
Array(SequenceableCollection)>>do:
WorldState>>handsDo:
WorldState>>doOneCycleNowFor:
WorldState>>doOneCycleFor:
PasteUpMorph>>doOneCycle
[] in Project class>>spawnNewProcess
[] in BlockContext>>newProcess

--------------- end --------------

What was I doing? Nothing! It happens as soon as I start my image up. The
problem only seems to start after swimming around a new clean image. Any
offers?

I *know why* it went bang and once upon a time I even put an [] :ifError[]
around some code in here...

EventSensor>>nextEventFromQueue
 "Return the next event from the receiver."
 eventQueue isEmpty
  ifTrue: [inputSemaphore signal].
 EventPollFrequency _ 500.
 "since Squeak is taking the event, reset to normal delay"

 ">>>my change..."
 [ eventQueue isEmpty
  ifTrue: [^ nil]
  ifFalse: [^ eventQueue next]] ifError: [ ^nil ].
 ">>>...end my change"

which 'removed' the walkback but I noticed that every time I saved the image
or pretty much did anything else, the cursor kept switching to the 'buy in
background' shape. Any explanationas would be most welcome!

Sean Charles.





More information about the Squeak-dev mailing list