/MobileCppMemoryTest

Sample project showing memory error using djinni

Primary LanguageMakefile

MobileCppMemoryTest

This project show's an error while using djinni. I think it's a memory management error.

##How to run the project? To simulate the problem open MobileCppMemoryTestiOS.xcodeproj on iOS or open the Android project here and run the app.

##iOS error The error is EXC_BAD_ACCESS in this line.

##Android Error

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x69006f in tid 4730 (ypicode.com/...)

      [ 10-27 16:42:26.461  1184: 1184 W/         ]
      debuggerd: handling request: pid=4702 uid=10067 gid=10067 tid=4730

Workaround

One workarround is to put this on iOS or this on Android variables as global variables, but I want to understand why this is happening.