Hello!
I'm trying to run cpp code generated by haxe, embedded into another application. I'm running the haxe code in a separate thread, I'm doing static linking, and it is a mac application.
I have pretty much the whole setup done, but when it tries to allocate any haxe thing, it crashes.
I tried calling hxcpp_set_top_of_stack() in the beginning of the thread, but that doesn't seem to be enough...
Am I missing any initialisation code? Any tips on what to look for?
I can't insert anything into the application main, because I don't have access to it. I also tried looking into how nme does the initialization on the different platforms, that's where I got the hxcpp_set_top_of_stack, but I'm probably missing something...
Thanks!
Rui.