will do that memory test in a few days.
but i don't think the low memory is caused by the script alone i think it is the combination with canon indexing when it moves to play.
That's possible, but given that I had to add extra garbage collection logic to imglist, it is extremely like that delete can suffer the same problem. I do know a thing or two about this stuff
So in chdkptp r1182 I added batching and gc logic to multicam delete_images_list, similar to what imglist uses. There are two new options:
* batch_size controls the maximum files deleted per command. The default is 50. A garbage collection step is done once per batch. The defaults are similar to what imglist uses.
* rpretend is like pretend, but instead of just listing the files to delete on the PC side, it sends each file name to the camera side script which checks whether it exists.
Other changes:
* The output of verbose and pretend is a bit different
* Deleting should also be noticeably quicker.
* If the list is empty, a harmless warning is printed and nothing else is done.
If you don't want to deal with updating all of chdkptp or the multicam.lua file, you should be able to take just the mc:delete_files_list_cam function from the PC side and cmds.delete_files from the camera side.