failure to dynamicAlloc despite ALLOW_MEMORY_GROWTH=1

18 views
Skip to first unread message

キャロウ マーク

unread,
Jul 20, 2019, 1:10:11 PM7/20/19
to emscripten-discuss
I have -s ALLOW_MEMORY_GROWTH=1 yet I still get this error, which I was getting before I added ALLOW_MEMORY_GROWTH=1:

failure to dynamicAlloc - memory growth etc. is not supported there, call malloc/sbrk directly

Why?

I only started getting this after I added a printf to my code to try and debug why my file loading is not working.

Regards

    -Mark
signature.asc

キャロウ マーク

unread,
Jul 22, 2019, 1:49:30 PM7/22/19
to emscripten-discuss
I was caught out by the browser loading the previous version from cache. Once I actually got the version with ALLOW_MEMORY_GROWTH=1 the problem went away.

Regards

    -Mark

signature.asc
Reply all
Reply to author
Forward
0 new messages