【问题标题】:"Program has exited with status 101"“程序以状态 101 退出”
【发布时间】:2010-10-09 14:29:06
【问题描述】:

谁能给我更多关于这个错误的信息?

仅控制台日志 程序以状态值退出:101。

如果你想象我有一个 nsmutablearray:

它包含 TimeEntry 对象:

    #import <Foundation/Foundation.h>
#import "Constants.h"

/*
#define KTimeEntryInformationKey @"TEInformation"
#define KTimeEntryFromKey @"TEFrom"
#define KTimeEntryToKey @"TETo"
*/

@interface TimeEntry : NSObject <NSCopying, NSCoding> {

    NSDate *from;
    NSDate *to;

    NSString *information;


}

@property (nonatomic, retain) NSDate *from;
@property (nonatomic, retain) NSDate *to;

@property (nonatomic, copy) NSString *information;

@end

仅当我将 15-20+ TimeEntry 对象添加到数组时,应用程序才会给我错误,并在弹出上述 viewController(如图)时给我错误。

【问题讨论】:

    标签: iphone objective-c cocoa-touch xcode


    【解决方案1】:

    我相信这是您的程序因使用过多内存而自动关闭时的结果代码。

    这不是真正的崩溃,所以它不会停止执行或调用 gdb。

    【讨论】:

      【解决方案2】:

      感谢 Apple 讨论板上的 jerbeers:

      101 是内存错误,导致内存不足。您可以尝试重新启动设备,然后运行仪器并查看发生了什么。这样您就可以确保问题不会遗留在您之前的应用程序或版本中

      我修复了我的应用程序!!!!呜呜呜!我离开了 XIB 的 cellidentifier。滚动表格分配了太多内存.. 和 Boom 崩溃怪异。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-10-18
        • 2022-07-05
        • 2013-08-17
        • 1970-01-01
        • 2020-09-25
        相关资源
        最近更新 更多