View class>>onStartup

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

View class>>onStartup

Steve Alan Waring
Creating an instance of a subclass of View in its class #onStartup method is
causing errors. Is this a bug or a "don't do that"?

FWIW: It was possible in D5.

To reproduce the problem:
 1/ Install the attached package.
 2/ Save the image and exit.
 3/ Run the image

Most of the time the image fails to load with an Error Message Box:
---------------------------
Dolphin Smalltalk
---------------------------
Fail to open image file 'C:\Documents and Settings\Steve\My
Documents\Dolphin Smalltalk X6\test.img'
---------------------------
OK
---------------------------

I did get a walkback once:

10:34:40 AM, Monday, 16 May 2005: 'failed to create window (16r2: The system
cannot find the file specified.)'
SWViewActionQueue(View)>>unhookWindowCreate:
SWViewActionQueue(View)>>createAt:extent:
SWViewActionQueue(View)>>create
SWViewActionQueue class>>onStartup
[] in View class>>onStartup
[] in Behavior>>allSubclassesPreOrderDo:
Array(ArrayedCollection)>>do:
View class(Behavior)>>allSubclassesPreOrderDo:
View class(Behavior)>>allSubclassesDo:
View class>>onStartup
[] in GUISessionManager>>windowSystemStartup
SystemDictionary(Dictionary)>>at:ifPresent:
[] in GUISessionManager>>windowSystemStartup
Array(ArrayedCollection)>>do:
DevelopmentSessionManager(GUISessionManager)>>windowSystemStartup
DevelopmentSessionManager(GUISessionManager)>>startUI
DevelopmentSessionManager(SessionManager)>>secondaryStartup
[] in DevelopmentSessionManager(SessionManager)>>onStartup:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
DevelopmentSessionManager(SessionManager)>>onStartup:
ProcessorScheduler>>onStartup:
[] in ProcessorScheduler>>vmi:list:no:with:
BlockClosure>>ifCurtailed:
ProcessorScheduler>>vmi:list:no:with:
DevelopmentSessionManager>>snapshot:
DevelopmentSessionManager>>snapshot
DevelopmentSessionManager>>saveImageDefault
[] in DevelopmentSessionManager(SessionManager)>>saveImage
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
DevelopmentSessionManager(SessionManager)>>saveImage
[] in DevelopmentSessionManager>>onQueryEndSession:
MessageBox>>confirm:onYes:onNo:onCancel:
DevelopmentSessionManager>>onQueryEndSession:
EventMessageSend>>forwardTo:withArguments:
EventMessageSend(MessageSendAbstract)>>valueWithArguments:
[] in MessageSequenceAbstract>>valueWithArguments:
EventMessageSequence>>messagesDo:
EventMessageSequence(MessageSequenceAbstract)>>valueWithArguments:
EventsCollection>>triggerEvent:with:
DevelopmentSessionManager(Object)>>trigger:with:
DevelopmentSessionManager(SessionManager)>>queryEndSession
DevelopmentSessionManager(SessionManager)>>onQuit:
InputState>>pumpMessage:
InputState>>loopWhile:
InputState>>mainLoop
[] in InputState>>forkMain
ExceptionHandler(ExceptionHandlerAbstract)>>markAndTry
[] in ExceptionHandler(ExceptionHandlerAbstract)>>try:


begin 666 ViewStartup.pac
M?"!P86-K86=E('P-"G!A8VMA9V4@.CT@4&%C:V%G92!N86UE.B G5FEE=U-T
M87)T=7 G+@T*<&%C:V%G92!P87A697)S:6]N.B Q.PT*"6)A<VEC0V]M;65N
M=#H@)R<N#0H-"@T*<&%C:V%G92!C;&%S<TYA;65S#0H)861D.B C5FEE=U-T
M87)T=7 [#0H)>6]U<G-E;&8N#0H-"G!A8VMA9V4@8FEN87)Y1VQO8F%L3F%M
M97,Z("A3970@;F5W#0H)>6]U<G-E;&8I+@T*#0IP86-K86=E(&=L;V)A;$%L
M:6%S97,Z("A3970@;F5W#0H)>6]U<G-E;&8I+@T*#0IP86-K86=E('-E=%!R
M97)E<75I<VET97,Z("A)9&5N=&ET>5-E="!N97<-"@EA9&0Z("=/8FIE8W0@
M07)T<UQ$;VQP:&EN7$)A<V5<1&]L<&AI;B<[#0H)861D.B G3V)J96-T($%R
M='-<1&]L<&AI;EQ-5E!<0F%S95Q$;VQP:&EN($U64"!"87-E)SL-"@EY;W5R
M<V5L9BDN#0H-"G!A8VMA9V4A#0H-"B)#;&%S<R!$969I;FET:6]N<R(A#0H-
M"E9I97<@<W5B8VQA<W,Z("-6:65W4W1A<G1U< T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*"0D)"7EO=7)S96QF(@T*#0H)(2 A#0HA5FEE=U-T87)T=7 @8VQA
M<W,@8V%T96=O<FEE<T9O<CH@(VEN:71I86QI>F4A:6YI=&EA;&EZ:6YG(7!R
M:79A=&4A("$-"B%6:65W4W1A<G1U<"!C;&%S<R!C871E9V]R:65S1F]R.B C
M;VY3=&%R='5P(7!U8FQI8R$@(0T*(59I97=3=&%R='5P(&-L87-S(&-A=&5G
M;W)I97-&;W(Z("-O;E-T87)T=7 R(7!U8FQI8R$@(0T*#0HB0FEN87)Y($=L
+;V)A;',B(0T*#0H`
`
end


Reply | Threaded
Open this post in threaded view
|

Re: View class>>onStartup

Schwab,Wilhelm K
Andy,

> Creating an instance of a subclass of View in its class #onStartup method is
> causing errors. Is this a bug or a "don't do that"?
>
> FWIW: It was possible in D5.
>
> To reproduce the problem:
>  1/ Install the attached package.
>  2/ Save the image and exit.
>  3/ Run the image

Can you say whether this is something you intend to fix, and whether it
will be in the next release?  Sorry to "nag", but it affects my strategy
for testing.

Have a good one,

Bill


--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: View class>>onStartup

Schwab,Wilhelm K
Hello all,

>> Creating an instance of a subclass of View in its class #onStartup
>> method is causing errors. Is this a bug or a "don't do that"?
>>
>> FWIW: It was possible in D5.
>>
>> To reproduce the problem:
>>  1/ Install the attached package.
>>  2/ Save the image and exit.
>>  3/ Run the image

Any workarounds to this?  What about loading packages with reference
views?  I admit that I have not debugged into any of the suspicious
failures, but that explanation made a lot of sense.

Can anyone claim severe harm from the beta installer?  So far, I've kept
it isolated to a machine that is not terribly convenient to access.  If
the collective thinking is that the installer is safe (even just with
explicit shortcuts, which I use for all versions/images), then I will
start trying it on other machines.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: View class>>onStartup

Chris Uppal-3
Bill,

> Can anyone claim severe harm from the beta installer?  So far, I've kept
> it isolated to a machine that is not terribly convenient to access.

Not I, not yet ;-)

But remember that Andy did say that it doesn't uninstall clean (deliberately
leaving a bit behind), so I'd be inclined to test removing it from the isolated
machine before adding it to any others.

    -- chris