Just like a native executable, you really need to run it from scratch to
restart, because there are things like global initializers, atexit, etc.

To do so, you can put the generated code inside a function, then each call
to the function creates a new instance of the application.

- Alon



On Tue, Mar 18, 2014 at 6:12 AM, tb. <[email protected]> wrote:

> Hi, I have a module that I would like to restart (several times) from a
> button in my HTML page.
> I tried to use  Module.run()  and some variants, but I could find a way to
> restart the code.
> How can I do? regards, t.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to