I converted a Flash game to OpenFL but have a problem where it crashes on hxcpp targets. The crash is happening inside lime.ndll and I am not sure what to do now.
These are my debugging related settings in my projects .hxp file:
haxelibs.push(new Haxelib("hxcpp"));
haxedefs.set("HXCPP_CHECK_POINTER",1);
haxedefs.set("HXCPP_DEBUG_LINK",1);
haxedefs.set("DHXCPP_STACK_TRACE",1);
haxedefs.set("HXCPP_STACK_LINE",1);
haxedefs.set("HXCPP_CHECK_POINTER",1);
haxeflags.push("-D HXCPP_DEBUGGER");
haxelibs.push(new Haxelib("debugger"));
haxeflags.push ("-debug");
These are infos from the windows event log, I translated them, hopefully my translation is not too far from the real english terms:
Name of faulty application: nss.exe, Version: 0.0.0.0, Time Stamp: 0x54d0acab
name of faulty module: lime.ndll, Version: 0.0.0.0, Time Stamp: 0x54c2f680
Exception Code: 0xc0000005
Error offset: 0x00014286
ID of fauly process: 0x349c
Start time of fauly application: 0x01d03fa20a7eaafd
path of faulty application: D:\work\projects\nss\project\bin\windows\cpp\bin\nss.exe
path of fauly module: D:\work\projects\nss\project\bin\windows\cpp\bin\lime.ndll
I recompiled the project with the latest haxelib versions.
Can I enable some special debug version of Lime to find out what Lime is trying to do when crashing? I am completely lost with this error and have no idea on what I could do to find it.
I tried https://github.com/openfl/lime/wiki/Debugging-Lime but the article is outdated:
C:\Users\mako>lime rebuild -debug -version -Ddebug
Error: Incorrect number of arguments for command ‘rebuild’
I looked at https://github.com/openfl/lime and decided to add the target mentioned there:
C:\Users\mako>lime rebuild windows -debug -version -Ddebug
No error but also nothing happening. I have Visual Studio 2013 installed if that makes a difference.
Any help would be appreciated.