HaxeFoundation / hxcpp

Runtime files for c++ backend for haxe
Other
291 stars 186 forks source link

Exception code c0000005 if executable path contain non-English characters #935

Open AG-w opened 3 years ago

AG-w commented 3 years ago

I was testing an empty Haxeflixel template using “lime test windows” and everything went smoothly, “hello world” window shows up

but if I use “lime build windows”, and then double click on executable I just compiled it will throw me “XXX.exe has stopped working” exception code c0000005

the weird thing I found is that If I simply move executable to other folder which path are all English characters, the problem just disappeared

also if I add -debug when compiling then this problem is gone again

I asked in Openfl forum first and someone say it's an existing problem issue with hxcpp?

The only workaround for now is compile it with debug flag

All library I’m using are latest version I’m using Visual Studio Code with VS 2017 build tool

AG-w commented 3 years ago

so I found that by adding HXCPP_STACK_TRACE I can build a executable that's working normally in release mode

I wonder why adding stack traces make this issue disappear