Hi. I use asyncify for dosbox/dosbox-x project, everything works well. But I have little problem, I need to force exit from dosbox. To do this I set flag exitRequested in c++ code while asyncify is in paused state. When it resumes the dosbox check this flag and breaks normal loop execution.
This trick works mostly, but it can happen that something goes wrong (e.g. bad place to break the loop), and some unhandled exception will be thrown from webassembly. Typical is: Uncaught RuntimeError: memory access out of bound This exception is unhadled and my client script can't understand that dosbox is died. So I want to catch this exception somehow.I tried to wrap wakeUp (js) function with try/catch but no luck. The only way I found is to add "error" listener, but it is not possible to understand if it error from my dosbox instance (I can run multiple instances per page). So, my question is it possible to turn this unhandled exception to handled? -- 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 emscripten-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVF%3Dmkcr-GYCeP3MVTccAbSy2a3dEnLnKv5X6MVXrmH7rg%40mail.gmail.com.