- (void) initGPS
{
Init _mapManager=[[BMKMapManager alloc]];
Self. OpenGPSState=0;
}
This code crash, if the AppDelegate.
in the CPP
//register lua module
Auto engine=LuaEngine: : getInstance ();
ScriptEngineManager: : getInstance () - & gt; SetScriptEngine (engine);
Lua_State * L=engine - & gt; GetLuaStack () - & gt; GetLuaState ();
Lua_module_register (L);
Register_all_LuaDataBridge (L);
LuaStack * stack=engine - & gt; GetLuaStack ();
Stack - & gt; Dxlua setXXTEAKeyAndSign (" 2 ", strlen (" 2 dxlua "), "XXTEA strlen (" XXTEA"));
Comment out a string of code does not collapse, normal boot, but crash program is not running on this string of code, who know what the problem, please feel free to comment
CodePudding user response:
To follow after, detection is lua_module_register (L); The function of register_network_module (L); Part of functions, including registered webcoskcet# if (CC_TARGET_PLATFORM==CC_PLATFORM_IOS | | CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID | | CC_TARGET_PLATFORM==CC_PLATFORM_WIN32 | | CC_TARGET_PLATFORM==CC_PLATFORM_MAC)
Tolua_web_socket_open (L);
Register_web_socket_manual (L);
# endif
But this one step to track track not bottom go to, as long as the two functions in, even if the function of the operations are commented out will collapse
CodePudding user response:
The error stack and type of hair, you like this it's hard to see,CodePudding user response: