Squeaking trouble

Ron Teitelbaum Ron at USMedRec.com
Mon Nov 14 15:52:00 UTC 2005


Donald,

You are right the problem is with instantiating an abstract class.  It
causes an endless loop as it tries to get size which calls do which calls
size.  

Bob, to fix your problem use OrderedCollection instead of
SequencableCollection.  SequencableCollection is an abstract superclass
which means that it's not intended to be used.  

Sorry about the instability, I've not had similar problems and I am working
on windows.

We should fix this problem with something like overriding new to return
subclassResponsibility. 

Ron Teitelbaum



-----Original Message-----
From: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] On Behalf Of Donald
Major
Sent: Monday, November 14, 2005 10:39 AM
To: The general-purpose Squeak developers list
Subject: Re: Squeaking trouble

Actually, he's right -- it REALLY pegs the CPU -- ALT/CTL/CMD-. doesn't
cut it (at least not for me, even after trying for a minute.  It appears
to require killing Squeak.

On the other hand, I'm not sure about the wisdom of instantiating an
abstract class in the first place -- the whole idea is that it SHOULDN'T
have an instance anywhere in the system -- only any concrete subclasses
should be instantiated.

But I do admit I'm surprised the system didn't catch that fact and
complain...

Hernan Tylim wrote:
> Hi Bob, a tip that may help you.
> 
> When you experience lock ups hit ALT+. (dot). It will interrupt the
> currently executing operation on the GUI thread.  It's not that Squeak
> is blocking but the GUI process. When that happens the interrupt key
> will help you to figure out where the block happened, fix it and save
> your work. Nevertheless is good policy to treat your images as
> disposable and to save them frecuently :)
> 
> Regards,
> Hernán
> 
> Bob.Cowdery at CGI-Europe.com wrote:
> 
>> Ok - I admit I don't know what I am doing but then that's always the
>> best way to break something. Is Squeak that flaky or am I just being
>> really unlucky? I have to say I have had more lock-ups in the short
>> time I have been using Squeak than in any other language system I have
>> used. Quite a few in Morphic but the last one simply doing this:
>>
>>  
>>
>> x := SequenceableCollection new, then try to print x. Lock-up + 100%
>> CPU. The only response is from the main window, quit without saving
>> then kill squeak as it's still running.
>>
>>  
>>
>> I was simply trying to understand why forceTo: paddingStartWith:
>> didn't work if the length was more than the original string. What I
>> wanted to do was add a calculated number of padding '0' characters in
>> front of my string. I was using a base class method because padded:
>> to: with: also didn't work if to: was greater than the string length.
>> I must be reading these completely wrong somehow. Can someone restore
>> my confidence please.
>>
>>  
>>
>> Bob
>>
>> **** Confidentiality Notice **** Proprietary/Confidential
>> Information belonging to CGI Group Inc. and its affiliates
>> may be contained in this message. If you are not a recipient
>> indicated or intended in this message (or responsible for
>> delivery of this message to such person), or you think for
>> any reason that this message may have been addressed to you
>> in error, you may not use or copy or deliver this message
>> to anyone else.  In such case, you should destroy this
>> message and are asked to notify the sender by reply email.
>>
>>
>> ------------------------------------------------------------------------
>>
>>
> 
> 
>     
> 
>     
>        
> ___________________________________________________________ 1GB gratis,
> Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo
> http://correo.yahoo.com.ar
> 
> 




More information about the Squeak-dev mailing list