Loading problem

Keith Hodges keith_hodges at yahoo.co.uk
Tue Aug 7 03:33:17 UTC 2007


In loading beta2, I get:

UndefinedObject(Object)>>doesNotUnderstand: #critical:
    Receiver: nil
    Arguments and temporary variables:
        aMessage:     critical: [] in MagmaRepositoryController>>close 
{[OpenControllers   ...etc...
    Receiver's instance variables:
nil

MagmaRepositoryController class>>controllersGuard:
    Receiver: MagmaRepositoryController
----

Of course I
suspect it would have helped to #cleanUp before loading the new version. 
However this code is closing open sessions on initialization (on load) 
and the close code may encounter the fact that ControllerGuard has yet 
to be initialized.

see below:

initialize
    OpenControllers ifNotNil: [ OpenControllers do: [ : each | each 
close ] ].
    OpenControllers _ Set new.
    ControllersGuard _ Monitor new.
    Smalltalk
        addToStartUpList: self ;
        addToShutDownList: self


cheers

keith


More information about the Magma mailing list