Yes I was indeed referring to RAM. I somehow don't think it's the problem .. because again two different cameras doing basically similar behavior.
The max block switches between 2 values, 405K and 438K.
function dcimdl(destdir,del,pretend)
local status,mi=con:execwait('return get_meminfo()');
print("enter dcimdl:",status,serialize(mi))
if pretend then
pretend = '-pretend '
else
pretend = ''
end
local dcim,err=con:listdir('A/DCIM')
local status,mi=con:execwait('return get_meminfo()');
print("after listdir:",status,serialize(mi))
if not dcim then
printf('error listing directory %s\n',tostring(err))
return
end
for i,dname in ipairs(dcim) do
if dname ~= 'CANONMSC' then
cli:print_status(cli:execute('mdl '..pretend..' -fmatch=%.[JDC][PNR][G2W]$ DCIM/'..dname..' '..destdir))
local status,mi=con:execwait('return get_meminfo()');
print("after mdl",status,serialize(mi))
if del then
--cli:print_status(cli:execute('rm '..pretend..' -nodirs -fmatch=%.[JDC][PNR][G2W]$ DCIM/'..dname))
cli:print_status(cli:execute('rm '..pretend..' -skip_topdirs DCIM'))
end
end
end
end
function myshoot(tv, av, sv, destdir)
cli:execute('shoot -tv='..tv..' -av='..av..' -sv='..sv..'')
dcimdl(destdir, true, false)
end
edit: this time it hit 17 good and failed on the 18th.