iphone - cocos-2d:My app crashes when i close it via task manager -


i have weird problem,when close app via task manager , app gets crashed on line

int retval = uiapplicationmain(argc, argv, nil, @"appdelegate"); 

throwing "thread : 1 signal sigkill" error,and can't reopen app @ all. other times works pretty well. please 1 me problem. new cocos-2d please gentle :( , thanks.

as far know, normal, expected behavior. reason seems weird, think, when run xcode, executable attached debugger in xcode, prevents things executing (for example, in crash or sig_kill scenario). giving hint apple doing when use task-bar close app... sends sigkill process :-)

edit: curious, tested little , found applicationwillterminate: not called first, encouraging consumer of apps. sigkilling these things. think means (with background-processing workflow) case when method called if opt out of background execution. news in order kill app way, need move background first, canonical place teardown applicationwillresignactive: but knew that...

edit: instructions avoiding can't-run-again issue:

  1. build , run app on device xcode
  2. as app "up , running", click "stop" in xcode
  3. when app has closed, "detached" xcode , can terminate , re-open wish. keep in mind no longer log xcode nslog calls or otherwise.

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -