Hi Reyalp,
I can confirm that the modification works on my SD500. The original script now works without problems! Thanks for the amazingly quick finding and solving. I am rather new here but also rather curious.... Could you please elaborate a bit more on "I replaced open/read with Fut*"? Is that a different library method to access files or something?
Yes, there's 3 or 4 different file IO APIs. Since we only know what we've figured out from reverse engineering, it's not always clear when a particular one should be used.
see this thread for example
io functions: Foo_Fut vs. Foo vs. foo ?this is probably also related
The difference between malloc() and umalloc()I'll check in the fix now that it has been tested on a few cams. There's a number of other places where this may be an issue as well.
Using Fut does have a downside: opening a FILE * allocates a bit over 32K of memory, which is freed when you close the file. I suspect that using read() with uncached (umalloc) memory would work. We should probably test that.
edit:
attached a new build. I'd appreciate if you could test that.