[ENH] openAnimGifs-asm

ducasse ducasse at iam.unibe.ch
Sat Dec 13 13:45:06 UTC 2003


Alejandro

I approved this change too fast :) I can load an animated gif file
Now I cannot load a gif file. I do not have too much time to check 
that, could you have a look?

Stef

From: ducasse at iam.unibe.ch
To: squeak-dev at lists.squeakfoundation.org
Subject: [BUG]OrderedCollection(Object)>>error:

here insert explanation of what you were doing, suspect changes you've 
made and so forth.

13 December 2003 2:44:27 pm

VM: Mac OS - a SmalltalkImage
Image: Squeak3.7alpha [latest update: #5607]

OrderedCollection(Object)>>error:
	Receiver: an OrderedCollection()
	Arguments and temporary variables:
		aString: 	'attempt to index non-existent element in an ordered 
collection'
	Receiver's instance variables:
		array: 	#(nil nil nil nil nil nil nil nil nil nil)
		firstIndex: 	3
		lastIndex: 	2

OrderedCollection>>errorNoSuchElement
	Receiver: an OrderedCollection()
	Arguments and temporary variables:

	Receiver's instance variables:
		array: 	#(nil nil nil nil nil nil nil nil nil nil)
		firstIndex: 	3
		lastIndex: 	2

OrderedCollection>>at:
	Receiver: an OrderedCollection()
	Arguments and temporary variables:
		anInteger: 	1
	Receiver's instance variables:
		array: 	#(nil nil nil nil nil nil nil nil nil nil)
		firstIndex: 	3
		lastIndex: 	2

AnimatedImageMorph>>wantsSteps
	Receiver: an AnimatedImageMorph(2769)
	Arguments and temporary variables:

	Receiver's instance variables:
		bounds: 	0 at 0 corner: 127 at 57
		owner: 	a PasteUpMorph(1622) [world]
		submorphs: 	#()
		fullBounds: 	0 at 0 corner: 127 at 57
		color: 	Color blue
		extension: 	nil
		image: 	ColorForm(127x57x8)
		images: 	an OrderedCollection()
		offsets: 	an OrderedCollection()
		delays: 	an OrderedCollection()
		stepTime: 	10
		nextTime: 	1074137
		imageIndex: 	1
		previousOffset: 	0 at 0


--- The full stack ---
OrderedCollection(Object)>>error:
OrderedCollection>>errorNoSuchElement
OrderedCollection>>at:
AnimatedImageMorph>>wantsSteps
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AnimatedImageMorph(Morph)>>intoWorld:
PasteUpMorph(Morph)>>privateAddMorph:atIndex:
PasteUpMorph(Morph)>>addMorph:inFrontOf:
[] in PasteUpMorph(Morph)>>addMorphInFrontOfLayer: {[:each |  each == 
aMorph   ifTrue: [^ self].  layerHere := each morphicLayer...]}
Array(SequenceableCollection)>>do:
PasteUpMorph(Morph)>>addMorphInFrontOfLayer:
PasteUpMorph>>addMorphFront:
PasteUpMorph(Morph)>>addMorph:
AnimatedImageMorph(Morph)>>openInWorld:
AnimatedImageMorph(Morph)>>openInWorld
AnimatedImageMorph class>>openGIFInWindow:
SimpleServiceEntry>>performServiceFor:
PluggableButtonMorph>>performAction
[] in PluggableButtonMorph>>mouseUp: {[:m | (m containsPoint: evt 
cursorPoint)   ifTrue: [m performAction]]}
Array(SequenceableCollection)>>do:
PluggableButtonMorph>>mouseUp:
PluggableButtonMorph(Morph)>>handleMouseUp:
MouseButtonEvent>>sentTo:
PluggableButtonMorph(Morph)>>handleEvent:
PluggableButtonMorph(Morph)>>handleFocusEvent:
[] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self.  
ActiveEvent := anEvent.  result := focusHolder     han...]}
PasteUpMorph>>becomeActiveDuring:
HandMorph>>sendFocusEvent:to:clear:
HandMorph>>sendEvent:focus:clear:
HandMorph>>sendMouseEvent:
HandMorph>>handleEvent:
HandMorph>>processEvents
[] in WorldState>>doOneCycleNowFor: {[:h |  ActiveHand := h.  h 
processEvents.  h isGenieRecognizing   ifTrue: [r...]}
Array(SequenceableCollection)>>do:
WorldState>>handsDo:
WorldState>>doOneCycleNowFor:
WorldState>>doOneCycleFor:
PasteUpMorph>>doOneCycle
[] in Project class>>spawnNewProcess {[[World doOneCycle.  Processor 
yield.  false] whileFalse.  nil]}
[] in BlockContext>>newProcess {[self value.  Processor 
terminateActive]}


On 12 déc. 03, at 13:58, Magistrello Alejandro (SFA) wrote:

>
> Stef,
>
> maybe this is better :)
>
>  <<openAnimGifs-asm.2.cs.gz>>
>
> Alejandro
>
>> -----Mensaje original-----
>> De:	ducasse [SMTP:ducasse at iam.unibe.ch]
>> Enviado el:	sábado 6 de diciembre de 2003 14:27
>> Para:	The general-purpose Squeak developers list
>> Asunto:	[ENH] openAnimGifs-asm ([sm])
>>
>> Hi alejandro
>>
>> I had a look at the code and I do not really like the solution you
>> propose because you are referencing
>> AnimatedGIFReadWriter from Form. So this means that we will not be 
>> able
>> to load/unload independently of Form
>> which is quite core.
>>
>> Could you propose a solution?
>>
>> Stef
>>
>>
> <openAnimGifs-asm.2.cs.gz>




More information about the Squeak-dev mailing list