<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Ben,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Thanks for the quick reply.</div>
    <div class="moz-cite-prefix">The desktop app I am using is the
      FreeGem v6.</div>
    <div class="moz-cite-prefix">The info box of the Desktop says John
      Elliot and your name was absent :(<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">The story to the conclusion/question:</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">As I was mailing to the group I  am
      busy to create the GEM-CD as a virtual machine.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">By adding (new) applications to it (via
      the Install application interface), some were not predefined. <br>
    </div>
    <div class="moz-cite-prefix">So I add the application and on the fly
      add an appropiate icon to it via the Install application interface</div>
    <div class="moz-cite-prefix">E.g. for the games you can "sort" the
      games by its kind of game.</div>
    <div class="moz-cite-prefix">At entry 64 all games revert to its
      standard tic-tac-toe</div>
    <div class="moz-cite-prefix">AND the new application (not a game)
      had the same (tic-tac-toe) icon.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">You can try revert this mishap via the
      deskop interface and save it (the desired situation).</div>
    <div class="moz-cite-prefix">But after a restart (The gem interface
      or reboot) you will be back on the same level, unless you revert
      via a text-editor to a number less than 64.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">I hope my explanation is in line what
      you were explaining.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Regards</div>
    <div class="moz-cite-prefix">Armand<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Op 20-11-2018 om 23:46 schreef Ben A L
      Jemmett:<br>
    </div>
    <span type="cite"
      cite="mid:%3CCB48AAAD-B956-4018-8C94-59F128D83A2A@jemmett.me.uk%3E"
      style="display: block; word-break: break-all; margin: 9.26667px 0
      0 0; padding: 0; line-height:0"></span>
    <pre class="moz-quote-pre" wrap="">Hi Armand,

Yes, that sounds right - the Desktop internally reads these into a list of ANODE structures, and it only allocates room for 64 of them.  It’s been many years since I last took a look at the details but if you need more, you should be able to alter the NUM_ANODES value defined in DESKAPP.H and rebuild the Desktop from source.  

Taking a quick glance at the code in DESKAPP.C that handles finding the next free node, it doesn’t appear to check if it ran off the end of the list, which is unfortunate; I’m surprised it doesn’t crash in spectacular fashion after the 65th or 66th node!  It’s not quite as simple as a missing bounds check because it sets the pre-allocated array of structs up as a linked list and they can get shuffled around as nodes are allocated and freed, but that does mean it would in theory be possible to have the list grow dynamically if needed.  Regardless of the details, though, it would be nice to at least check the return value of the app_alloc() calls in app_start() to handle this more gracefully!

Regards,
Ben A L Jemmett
<a class="moz-txt-link-freetext" href="http://flatpack.microwavepizza.co.uk/">http://flatpack.microwavepizza.co.uk/</a>

</pre>
    <blockquote type="cite">
      <pre class="moz-quote-pre" wrap="">On 20 Nov 2018, at 21:55, Armand Colleye <a class="moz-txt-link-rfc2396E" href="mailto:armand.colleye@planet.nl"><armand.colleye@planet.nl></a> wrote:

Hi all,


Is within desktop.inf a limit of 64 entries?

All the icons get messed up when I reach 64 entries.
-- 

Met vriendelijke groet,
With kind regards,


Armand Colleye


_______________________________________________
gem-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gem-dev@simpits.org">gem-dev@simpits.org</a>
<a class="moz-txt-link-freetext" href="http://www.simpits.org/mailman/listinfo/gem-dev">http://www.simpits.org/mailman/listinfo/gem-dev</a>
</pre>
    </blockquote>
    <span
style="font-family:"Verdana";font-size:6.0pt;color:black;background:white"
      lang="EN-GB"></span><span
style="font-family:"Verdana";font-size:6.0pt;color:black;background:white"
      lang="EN-GB"></span>
    <div class="moz-signature">
      <div class="moz-signature">
        <p><span
style="font-family:"Verdana";font-size:6.0pt;color:black;background:white"
            lang="EN-GB"><a
              href="http://nl.linkedin.com/in/armandcolleye"
              charset="iso-8859-1"
              title="Bezoek mijn LinkedIn pagina - Visit my LinkedIn page"
              lang="en"><br>
              <br>
            </a> </span> </p>
      </div>
    </div>
  </body>
</html>