>The issue with the scripts is something totally different an I don't intend to have a look at that at all. It is >caused by the sleep-"fix", which is already a hack anyway and I really prefer to look for the real solution >of the original problem
when i understand correct, the problem is also without changes in.
now i read more carefully all posts back, and find his mint.lua script here
http://chdk.setepontos.com/index.php?topic=4348.msg62042#msg62042I test it on my camera, it fail, but my script work.
I see the diffrence to my script is the last line have no 0x0d 0x0a at end of line.so there is no return press in editor to end the line.
I notice this earlier i must always press return in editor on last line or ubasic or lua scripts fail.
But when this scripts work on the autobuilds, (i guess they are done with linux compiler) and fail with chdk shell builds that use windows compilers, there seem some diffrence in the compiler handling the end of line code.
I have no idea, maybe i should start a new thread.
But to confirm more, please test on your builds(first without sleep patch, then with sleep patch) my mint.lua file, if this work on your Camera too.
http://www.zshare.net/download/86973398db96e09a/>I'm still interested in helping you solve the startup crashes, I just need some new idea what/where to look for.
See here, i have explain how a better fix should look like.
http://chdk.setepontos.com/index.php?topic=4348.msg61853#msg61853