restore() in lua can't call anything that yields. If it does, the function will effectively end when the yield is encountered. Related thread http://chdk.setepontos.com/index.php?topic=9467.msg97585#msg97585
One possible approach might be run restore in a new lua thread, swapping Lt so it could still resume and yield.
QuoteOne possible approach might be run restore in a new lua thread, swapping Lt so it could still resume and yield.Would you still have the context of the original script at that point? Some restore() functions may need to make decisions based on the state of some of the original program's variables.
Started by rfbakeruk
General Help and Assistance on using CHDK stable releases
Started by trackuino
Started by ntstatic
« 1 2 »
Started by msl
Started by bugbear