HP Forums
(Free42) Program export - bug? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: (Free42) Program export - bug? (/thread-10121.html)



(Free42) Program export - bug? - Werner - 02-07-2018 11:56 AM

My iOS Free42 2.0.12d has a ton of programs on it, but the latest ones do not show up in the Program Export 'Select Programs' anymore. It's difficult to say from when exactly. I deleted two from before the last entry shown, and now it shows two more.. is there a limit to the number of programs shown?

Cheers, Werner


RE: (Free42) Program export - bug? - Thomas Okken - 02-07-2018 02:05 PM

(02-07-2018 11:56 AM)Werner Wrote:  My iOS Free42 2.0.12d has a ton of programs on it, but the latest ones do not show up in the Program Export 'Select Programs' anymore. It's difficult to say from when exactly. I deleted two from before the last entry shown, and now it shows two more.. is there a limit to the number of programs shown?

It does use a fixed-size buffer to create the list you see in the Export Programs dialog; it sounds like that may need to be larger (it's 1024 bytes currently). Do you see everything in the PGM catalog that you expect to see?

I could change it to automatically grow that buffer when 1024 bytes turns out to be too small. This would have been difficult while I was still supporting PalmOS, but it's a lot more straightforward now.


RE: (Free42) Program export - bug? - Werner - 02-07-2018 03:05 PM

Yes, the PGM catalog is ok. And I definitely have more than 1024 bytes of program names ;-)
Werner


RE: (Free42) Program export - bug? - Thomas Okken - 02-07-2018 03:09 PM

(02-07-2018 03:05 PM)Werner Wrote:  Yes, the PGM catalog is ok. And I definitely have more than 1024 bytes of program names ;-)
Werner

I just checked the sources, and the iPhone version is the only one with that small a buffer; I used 10000-byte buffers in all the other ones. Also note that the 1024-byte limit also applies in the iOS version's built-in HTTP server.

So, I guess increasing those buffer sizes to 10000 would go a long way, but I'll take a look at having core_list_programs() allocate / grow the buffer itself rather than filling a pre-allocated one, and fix this problem once and for all.


RE: (Free42) Program export - bug? - Thomas Okken - 02-11-2018 08:45 AM

This is fixed in 2.0.14, out now for Android, Windows, MacOS, and Linux. I expect the iOS version to show up today or tomorrow.


RE: (Free42) Program export - bug? - Werner - 02-11-2018 08:57 AM

Thanks a million, Thomas!

Werner