Hi, On slow connection, we experience a crash during loading in our application. After some debugging, we found out that some core code was run before the .mem file was loaded.
Our application works as follows : - Some initialization JavaScript code runs and loads our application JavaScript code asynchronously. - After the application JavaScript code is loaded, the main code is run but basically does nothing. - We then call a native function from the JavaScript initialization code to actually start the application. The problem here is that we don't wait for the .mem file to be loaded. The application may start and try to allocate memory and then crash with an error message "cannot dynamically allocate, sbrk now has control". Is there some Emscripten API that tells me that the memory file is ready? Thanks, Warren. -- 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. For more options, visit https://groups.google.com/d/optout.