Hi, Sometimes I TRAP4 at this line pos, when clicking `System.ShowModules' PROCEDURE Write* (VAR W: Writer; ch: CHAR); VAR p: Piece; BEGIN IF (W.buf.last.fnt # W.fnt) ... END Write; I freely admit I put the whole System to a real strain, being non proficient coder, I do a lot of code changes and un/loading. Plus possibly a lot silly no-no things. I tried new versions of Fonts/Texts, but rolled back in the end. -- Tomas Kral <thomas.kral@email.cz>
Hi Trap 4 is „NIL check“. Are you sure „W“ is not NIL? It might be you did NEW(W) and because there was no heap memory available anymore, NEW() returned NIL... Jörg
Am 06.03.2019 um 20:38 schrieb Tomas Kral <thomas.kral@email.cz>:
Hi,
Sometimes I TRAP4 at this line pos, when clicking `System.ShowModules'
PROCEDURE Write* (VAR W: Writer; ch: CHAR); VAR p: Piece; BEGIN IF (W.buf.last.fnt # W.fnt) ... END Write;
I freely admit I put the whole System to a real strain, being non proficient coder, I do a lot of code changes and un/loading. Plus possibly a lot silly no-no things.
I tried new versions of Fonts/Texts, but rolled back in the end.
-- Tomas Kral <thomas.kral@email.cz> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On Thu, 7 Mar 2019 07:29:13 +0100 Jörg Straube <joerg.straube@iaeth.ch> wrote:
Trap 4 is „NIL check“. Are you sure „W“ is not NIL?
Cannot be sure of course. With fresh install I experience these intermittent TRAPS. Being more a coder that a user, I test my code, I do `System.Watch', I keep heap < 30%, and module store < 70%. When I need temporarily to switch to other progs, I unload mine stuff plus the compiler. `System.ShowModules', I unload from the list then close, and again `System.ShowModules' to check. Between these steps I get TRAP4, or TRAP1 when `System.Close'. I will analyse further, experiment with older and newer versions. -- Tomas Kral <thomas.kral@email.cz>
participants (2)
-
Jörg Straube -
Tomas Kral