Free42 for Windows on machines with lots of RAM


Greetings, group--

I already have a question directly in to Thomas Okken, but I thought I would ask about others' direct experience.

I recently upgraded the RAM on my computer to 2GB from 512MB. Prior to the change, shift-catalog-mem in free42 would report that available memory was some impressively huge 9 digit number of bytes. Since the change, the output is gibberish--something like "0,+,..00// Bytes" where zeros and punctuation characters replace the desired number.

I am wondering if any free42 users out there with lots of RAM see the same thing. I suspect that Thomas' code isn't able right now to meaningfully report back the available RAM if it is in excess of 999,999,999 bytes.



Hi Les,

The int2string() function in common/ turns out to be broken; it does not handle large numbers properly (meaning: larger than 999,999,999, as you suspected).

This function is not just used by MEM, but in several other places in Free42 as well, so I figure this bug is serious enough to warrant an immediate fix. I'll post a bug fix release on my web site later today.

- Thomas


I posted version 1.4.27 just now, which fixes the MEM problem.

As it turns out, the other places where Free42 used the broken int2string() function aren't problematic, since they all deal with things like line numbers, register numbers, and matrix indexes, which cannot become large enough to cause problems on 32-bit machines. The only exception is the program byte count (the number displayed in line 00): if you load a program longer than 999,999,999 bytes, the number would get screwed up. Good luck trying to trip *that* bug. :-)

- Thomas


LOL - 1 GB worth of math programming... I'd like to see that :)

Possibly Related Threads…
Thread Author Replies Views Last Post
  42S with nonvolatile RAM Lyuka 5 3,007 12-13-2013, 08:52 AM
Last Post: Lyuka
  Best way to test HP-71B RAM modules (the 32K/96K ones etc.)? Philippe Lasnier 4 2,417 09-25-2013, 09:54 AM
Last Post: Philippe Lasnier
  HHC / HP Museum Programming Contest for RPN and RPL machines Gene Wright 18 5,607 09-22-2013, 09:39 AM
Last Post: Miguel Toro
  HP 2225D+ RAM failure/replacement Luca 4 1,954 09-10-2013, 01:46 PM
Last Post: Luca
  Questions about building a RAM card for hp 48 Waon Shinyoe (China) 0 1,112 07-09-2013, 09:53 PM
Last Post: Waon Shinyoe (China)
  RPN on other machines Palmer O. Hanson, Jr. 4 1,704 04-10-2013, 11:23 AM
Last Post: Palmer O. Hanson, Jr.
  Installing Conn4x on Windows 8 Jerry Raia 2 1,160 01-04-2013, 10:28 AM
Last Post: Jerry Raia
  Only slightly OT: HOW TO Setup SVN+SSH on Windows® Marcus von Cube, Germany 3 1,608 12-24-2012, 04:53 AM
Last Post: Walter B
  The latest version of Free42 is now a OS X Universal application..... zeno333 1 1,025 10-21-2012, 11:12 PM
Last Post: Matt Agajanian
  I need the last OS X "Universal" version of Free42..... zeno333 0 870 10-13-2012, 04:45 PM
Last Post: zeno333

Forum Jump: