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?

(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.

(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.