开发者

How to get rid of SIGTERM error

开发者 https://www.devze.com 2023-02-25 03:46 出处:网络
i have been working on this iphone app in the new xcode4. Practically every time I exit my application in the simulator I get an error on a code line in the main.m Here is my line of code, and then th

i have been working on this iphone app in the new xcode4. Practically every time I exit my application in the simulator I get an error on a code line in the main.m Here is my line of code, and then the error on the next line

int retVal = UIApplicationMain(argc, argv, nil, nil);

Thread 1:Program received signal: "开发者_运维百科SIGTERM".

What is happening here? How do I fix this?


SIGTERM is a Unix signal, used to tell your program to quit (TERMinate). When you run your program in Xcode, it runs it within gdb, the debugger program, which automatically catches certain signals. The signal handling behaviour of gdb can be controller but I'm just now myself researching how it's done so can't give you details. In the past, applications on Mac OS or iPhone were sent Apple Quit events, I think, but the SIGTERM signal may be used by the sudden termination feature recently added.

0

精彩评论

暂无评论...
验证码 换一张
取 消