CPP Crash Problem

My game runs smoothly with Javascript but cpp target crashing without any error.
How to fix issue?

It’s not ideal, but it might be best to use trace statements to see how far the game gets. Compile in debug mode and use a command prompt to open the game and see how much is traced out before it crashes. The trace statement often includes the line number, so that might offer up some clues.

Years ago I made a Windows build of a game that crashed without errors. Turns out it was because I was using Array::sort() which is documented as “unstable” in Haxe CPP targets. The fix was to use ArraySort.sort(). I managed to catch the issue because of aggressive tracing.