Jump to content

yatsyk

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Hello Peter, I’ve got similar problem. I’ve found that any heap memory allocation leads to program termination. So even GetMem(1) crashes wasm code. I plan to resume research when I have more time but now I have following ideas for further investigations: May be app compiled for wrong target (WASI but runtime expects embedded or vice versa) Problem related to memory allocation, so may be implement custom memory manager and install it with SetMemoryManager before memory allocations. Conspiracy theory 🙂 May be heap memory allocation doesn’t work on wasm target (contrary to claims on freepascal site). Wasm example code I’ve found on the internets works without issues if I compile it with my compiler and run it in browser.
×