After some investigation going on. I've found a problem in Codegen_wrapper.cpp of this particular code:
string s = c->getCodeString();
return s.c_str();
the s.c_str() method is using to return the code in const char variable. When I used a break point to check the value of the variable. It worked okay but it always will return empty string to outer function.
The cause is that const char is null-terminated string. So when it's return to outer function. it will be destroyed by ARC. (I'm not really sure about it though. Still working on iOS skill) The workaround is still working on. I have a little knowledge in C++. So, if anybody can help me with this one I will be really appreciate. :D
After some investigation going on. I've found a problem in Codegen_wrapper.cpp of this particular code:
string s = c->getCodeString(); return s.c_str();
the s.c_str() method is using to return the code in const char variable. When I used a break point to check the value of the variable. It worked okay but it always will return empty string to outer function.
I've checked on other people who having const char problem in iOS 7 and there's a topic about it. http://stackoverflow.com/questions/18901776/ios-6-and-7-doesnt-return-same-results
The cause is that const char is null-terminated string. So when it's return to outer function. it will be destroyed by ARC. (I'm not really sure about it though. Still working on iOS skill) The workaround is still working on. I have a little knowledge in C++. So, if anybody can help me with this one I will be really appreciate. :D