It would be helpful to see the code you used. Doesn't need to be "cleaned up", I just want to see the sequence of calls involved.
be my guest.
I don't think this would help, unfortunately. It would be functionally equivalent to remoteshoot or deleting the images before switching to playback, which crashes many cameras (AFAIK including S110)
ok. bad idea. won't give it any more thought then.
The problem is some element of the per-image information is created at shooting time, not on indexing. It might be possible to work around this (for example by hacking MetaCTG task https://chdk.setepontos.com/index.php?topic=11481.msg115202#msg115202) but there's no ready-made solution.
Another possible option would be to enable exmem or steal UI memory, which might perhaps leave enough to run a day instead of two. But I'm not sure rebooting twice a day is so bad, I don't know that we have any real info on what wears a camera out.
i wouldn't know or understand what these possible solutions would involve.
but i can tell you from years of experience that whatever info is created by canon during shoot or play is not relevant for the low free memory results i'm experiencing now.
i might not have memory data of these events. but 60.000 images before reboot is normal in my current setup. not because of low memory but to reset the tick count.
while with a 5v powered usb cable i can't even make 3000 shots without a low memory count...as i pointed out in that other post about file numbers.
it does not have to be connected to a pc to create these 'connection' problems.
sadly, it is with intent designed this way.
must have been hard on the engineers to go out of their way not to follow industry standards and design something, well, less.
first thought here is, can i cut the 5v line but keep the data lines and still connect to the camera? and would that perhaps prevent ptp-indexing from canon becoming active? probably not because the usb client doesn't get power.
however, it does not does the usb client handshake unless ptp-indexing is within specs.
it all comes back to a way of cheating ptp indexing i guess.
the wear i encounter are based on experiences with cams that only move to play/shut down/(re)boots twice a month.
this does not include any connection trouble or pc interference.
aside from human interference by me
it mostly involves stuck shutters, misalignments and, over time, dust. i'd say influenced but not completely related to the lens motor or electronics.
more related to production choices.
and then there are stopped cam moments due to power surges at reboot.
in reality there are always a few days missing or unusable each year...that could be less if i would detect it sooner. this is where a pc connection could be helpfull.
but that will change and not for the better when you make the cam do those 'riskfull' actions 15 or, with 2 reboots a day, even 30 times as much.
all those lens actions would probably keep the lens casing more dust free. but that's not really positive either.
and somewhat lower level you have 2x360 more relais switches between play and record needed to 'pre-delete' the files, those come with their own power surges and spikes.
if chances of failure are now only 1:500.000 (twice a year) i couldn't guess what it would become with these extra moments of risk without trying.
f.i. this year i already had 2 moments where reboot didn't complete and one where focus was so far off that the results were completely blurred for 6 hours when it suddenly decided to go there were it was supposed to be. (MF saved in custom setting, not by chdk)
Going up after delete seems odd, that's one of the reasons I'd like to see what code you are using.
i've enclosed some data from the last 2x12 hours run.