ios – 仪器在main.m(Xcode 4.3.1)中显示泄漏

ios – 仪器在main.m(Xcode 4.3.1)中显示泄漏,第1张

概述我正在开发一个使用ARC的应用程序 当我的应用程序在仪器中分析内存泄漏时,会显示以下功能的泄漏: #import <UIKit/UIKit.h>#import "AppDelegate.h"int main(int argc, char *argv[]){ @autoreleasepool { return UIApplicationMain(argc, arg 我正在开发一个使用ARC的应用程序
当我的应用程序在仪器中分析内存泄漏时,会显示以下功能的泄漏:
#import <UIKit/UIKit.h>#import "AppDelegate.h"int main(int argc,char *argv[]){    @autoreleasepool {        return UIApplicationMain(argc,argv,nil,NsstringFromClass([AppDelegate class]));    }}

这是否表示我的代码中的其他地方有问题?

这是堆栈跟踪

0 libsystem_c.dylib malloc   1 libsystem_c.dylib strdup   2 libnotify_sim.dylib token_table_add   3 libnotify_sim.dylib notify_register_mach_port   4 libnotify_sim.dylib notify_register_dispatch   5 CoreFoundation _CFXNotificationRegisterObserver   6 CoreFoundation CFNotificationCenteraddobserver   7 UIKit -[UIScrollVIEw(Static) _startTimer:]   8 UIKit -[UIScrollVIEw _endPanWithEvent:]   9 UIKit -[UIScrollVIEw handlePan:]  10 UIKit _UIGestureRecognizerSendActions  11 UIKit -[UIGestureRecognizer _updateGestureWithEvent:]  12 UIKit -[UIGestureRecognizer _delayedUpdateGesture]  13 UIKit ___UIGestureRecognizerUpdate_block_invoke_054114 UIKit _UIGestureRecognizerApplyBlocksToArray  15 UIKit _UIGestureRecognizerUpdate  16 UIKit -[UIWindow _sendGesturesForEvent:]  17 UIKit -[UIWindow sendEvent:]  18 UIKit -[UIApplication sendEvent:]  19 UIKit _UIApplicationHandleEvent  20 GraphiCSServices PurpleEventCallback  21 CoreFoundation __CFRUNLOOP_IS_CALliNG_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__  22 CoreFoundation __CFRunLoopDoSource1  23 CoreFoundation __CFRunLoopRun  24 CoreFoundation CFRunLoopRunspecific  25 CoreFoundation CFRunLoopRunInMode  26 GraphiCSServices GSEventRunModal  27 GraphiCSServices GSEventRun  28 UIKit UIApplicationMain  29 MyProject/main.m:16  30 MyProject start
解决方法 它似乎是iOS 5.1框架中的一个错误:
https://devforums.apple.com/message/630695 总结

以上是内存溢出为你收集整理的ios – 仪器在main.m(Xcode 4.3.1)中显示泄漏全部内容,希望文章能够帮你解决ios – 仪器在main.m(Xcode 4.3.1)中显示泄漏所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1113604.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存