Post Reply 
Hide soft menus?
01-12-2017, 09:51 AM
Post: #51
RE: Hide soft menus?
Hello,

by rearranging and further compression of the code I was able to squeeze the new functionality into the German version of the MLP - so I believe, that this is the last beta of the message library that allows hiding the soft menus
Please report any bugs that you might find.


.hp  MessagesEnglish.hp (Size: 88.23 KB / Downloads: 6)


This library contains also many bug fixes and speed improvements.
Note that this version will run from any port - as a matter of fact it is designed to run from a covered port without speed penalties.
However, there is still the limitation of a max. of 12 display lines (Font6/MiniFont with Header0 and the menu activated) as I am really running out of space.


Also note, that the new ChooseBoxEngine has a severe bug that will crash your machine under low memory conditions.
The ChooseBoxEngine creates some of its routines into TempOb and then creates a program that calls this routine via a pointer and that pointer is in TempOb.

This is what the ChooseBoxEngine does when a key is pressed:

1. it creates a program in TempOb and the
PTR_[in TEMPOB]ProgramCreatedIn_KeyHandler
is on Level1 of the SYS-RPL DataStack
2. Now a piece of ML code wraps this pointer from Level1 into another secondary.
:: TakeOver GetMetaVStack DROP PTR_[in TEMPOB]ProgramCreatedIn_KeyHandler 11GETLAM SetMetaVStack ;

But it is not allowed to put a pointer [in TEMPOB] into a secondary as a garbage collection will not recognize it as a referenced pointer and therefore a garbage collection might delete or move the code the pointer it referring to. For that reason, ::N (or similar SYS-RPL commands) embeds the content of a pointer into the secondary so that it is part of the secondary to be created.
Now if a garbage collection might happen in GetMetaVStack due to low memory conditions, then the garbage collection might delete or move the code the pointer it referring to and the HP 50g will crash.
Note also that this is a worst case scenario for the garbage collection as in this case it must keep track of ~ 850 catalog entries (exact number depends on installed libraries), the SYS-RPL DataStack content, the SYS-RPL ReturnStack content, additional VStacks, LAMs and further internal pointers. So garbage collection may take up to ninety seconds on a real machine!

Bugs like this are hard to find, because it will work fine unless the garbage collection happens directly inside the program (created by the ML code of the ChooseBoxEngine) before the embedded pointer.
Note again, that it is strictly forbidden having pointer in secondaries that point into TempOb. However it is save to use, if this a pointer into a memory area that is not covered by the garbage collection, e.g. ROM or absolute RAM.

This has been fixed, where the MLP/OSE uses the new ChooseBoxEngine (help entries choose list, catalog of all commands), but the error still resides in the ROM for other choose boxes called by the O.S.!

HTH+BR,
Andreas

http://www.software49g.gmxhome.de
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Hide soft menus? - JDW - 08-12-2016, 09:41 AM
RE: Hide soft menus? - Accutron - 08-12-2016, 01:10 PM
RE: Hide soft menus? - DavidM - 08-12-2016, 08:27 PM
RE: Hide soft menus? - JDW - 08-12-2016, 11:36 PM
RE: Hide soft menus? - Claudio L. - 08-13-2016, 12:44 AM
RE: Hide soft menus? - DavidM - 08-13-2016, 01:07 AM
RE: Hide soft menus? - BartDB - 08-15-2016, 04:02 PM
RE: Hide soft menus? - Logan - 08-12-2016, 01:52 PM
RE: Hide soft menus? - Accutron - 08-13-2016, 12:41 AM
RE: Hide soft menus? - JDW - 08-14-2016, 05:55 AM
RE: Hide soft menus? - Accutron - 08-14-2016, 06:39 AM
RE: Hide soft menus? - JDW - 08-14-2016, 07:19 AM
RE: Hide soft menus? - RMollov - 08-14-2016, 10:32 AM
RE: Hide soft menus? - DavidM - 08-14-2016, 01:34 PM
RE: Hide soft menus? - JDW - 08-14-2016, 02:13 PM
RE: Hide soft menus? - DavidM - 08-14-2016, 02:44 PM
RE: Hide soft menus? - JDW - 08-14-2016, 03:03 PM
RE: Hide soft menus? - JDW - 08-14-2016, 11:19 AM
RE: Hide soft menus? - JDW - 08-15-2016, 10:51 PM
RE: Hide soft menus? - Lithium - 08-18-2016, 05:32 AM
RE: Hide soft menus? - Software49g - 08-28-2016, 05:13 PM
RE: Hide soft menus? - JDW - 08-29-2016, 12:20 AM
RE: Hide soft menus? - DavidM - 11-17-2016, 08:43 PM
RE: Hide soft menus? - Software49g - 11-17-2016, 11:46 PM
RE: Hide soft menus? - DavidM - 11-18-2016, 10:11 PM
RE: Hide soft menus? - Software49g - 11-20-2016, 07:33 AM
RE: Hide soft menus? - DavidM - 11-20-2016, 05:54 PM
RE: Hide soft menus? - JDW - 12-01-2016, 02:39 AM
RE: Hide soft menus? - Software49g - 12-06-2016, 01:41 PM
RE: Hide soft menus? - Software49g - 12-06-2016, 02:28 PM
RE: Hide soft menus? - DavidM - 12-08-2016, 02:30 AM
RE: Hide soft menus? - JDW - 12-09-2016, 01:12 AM
RE: Hide soft menus? - Joe Horn - 12-09-2016, 04:44 AM
RE: Hide soft menus? - rprosperi - 12-10-2016, 01:25 AM
RE: Hide soft menus? - DavidM - 12-10-2016, 02:39 AM
RE: Hide soft menus? - Software49g - 12-09-2016, 08:36 PM
RE: Hide soft menus? - JDW - 12-09-2016, 11:50 PM
RE: Hide soft menus? - JDW - 12-10-2016, 02:00 AM
RE: Hide soft menus? - DavidM - 12-10-2016, 02:14 AM
RE: Hide soft menus? - JDW - 12-10-2016, 02:35 AM
RE: Hide soft menus? - rprosperi - 12-10-2016, 03:09 PM
RE: Hide soft menus? - Software49g - 12-10-2016, 10:02 AM
RE: Hide soft menus? - JDW - 12-10-2016, 11:31 AM
RE: Hide soft menus? - matthiaspaul - 12-10-2016, 10:59 PM
RE: Hide soft menus? - Software49g - 12-10-2016, 10:08 PM
RE: Hide soft menus? - Software49g - 12-10-2016, 11:12 PM
RE: Hide soft menus? - JDW - 12-10-2016, 11:22 PM
RE: Hide soft menus? - DavidM - 12-11-2016, 12:42 AM
RE: Hide soft menus? - BartDB - 01-12-2017, 01:15 PM
RE: Hide soft menus? - DavidM - 01-12-2017, 03:55 PM
RE: Hide soft menus? - Software49g - 12-10-2016, 11:46 PM
RE: Hide soft menus? - Software49g - 01-12-2017 09:51 AM
RE: Hide soft menus? - BartDB - 01-24-2017, 12:55 PM
RE: Hide soft menus? - Software49g - 01-24-2017, 03:48 PM
RE: Hide soft menus? - BartDB - 01-24-2017, 04:17 PM
RE: Hide soft menus? - JDW - 01-27-2017, 08:03 AM
RE: Hide soft menus? - DavidM - 01-28-2017, 01:41 PM
RE: Hide soft menus? - Software49g - 01-27-2017, 02:09 PM
RE: Hide soft menus? - JDW - 01-28-2017, 01:55 AM
RE: Hide soft menus? - Software49g - 01-29-2017, 07:30 PM
RE: Hide soft menus? - JDW - 01-30-2017, 12:06 AM
RE: Hide soft menus? - JDW - 08-28-2017, 12:12 AM
RE: Hide soft menus? - Software49g - 08-28-2017, 06:14 PM
RE: Hide soft menus? - pier4r - 08-28-2017, 06:51 PM
RE: Hide soft menus? - Software49g - 08-28-2017, 07:05 PM
RE: Hide soft menus? - Software49g - 09-21-2017, 03:25 PM
RE: Hide soft menus? - Software49g - 09-30-2017, 12:08 AM
RE: Hide soft menus? - JDW - 10-21-2017, 02:56 AM
RE: Hide soft menus? - franz.b - 09-30-2017, 03:16 PM
RE: Hide soft menus? - Software49g - 10-03-2017, 10:25 AM
RE: Hide soft menus? - Software49g - 10-26-2017, 10:11 AM
RE: Hide soft menus? - Mark Hardman - 10-27-2017, 11:13 PM
RE: Hide soft menus? - brickviking - 10-28-2017, 10:15 AM
RE: Hide soft menus? - Software49g - 10-29-2017, 10:50 PM
RE: Hide soft menus? - Mark Hardman - 10-30-2017, 01:08 AM



User(s) browsing this thread: 2 Guest(s)