Re: [Oberon] System Freeze on module unloading
I believe the best way to solve the problem is to have a termination handler for each module. It is no problem to implement a termination Handler, there is a mechanism in Oberon for that, but: A module does not trace the opened objects. It is THE advantage of automatic garbage collection, that one does not have to dealloc (and
Hi Frank, therefore trace) objects. (Maybe the system could check allocated memory ? On the other hand: I want to be the boss of my computer: I say System.Free and I want the system to execute System.Free unless there are very specific reasons not to do, like depending modules. I do not accept depending objects as a reason since there seems to be no way to check if displayed objects depend on any of the freed objects. ) Felix.
Is there a portable way to identify the caller of a procedure, I need something like PROCEDURE Identify(VAR s: ARRAY OF CHAR; something); BEGIN ??? END Identify; PROCEDURE TestProc(par: INTEGER) VAR s: ARRAY 256 OF CHAR; BEGIN Identify(s, something); Out.String("caller: "); Out.String(s); Out.Ln(); END TestProc; PROCEDURE Test*; BEGIN TestProc; END; ModuleName.Test should produce the following output caller: ModuleName.Test Felix. -- Felix Friedrich Institut für Biomathematik und Biometrie GSF - Forschungszentrum für Umwelt und Gesundheit, GmbH Ingolstädter Landstraße 1, D-85764 Neuherberg Tel: ++49 89 3187 2436 email: friedrich@gsf.de --
participants (1)
-
Felix Friedrich