【问题标题】:Random crashes in my client server application (Distributed Object)我的客户端服务器应用程序(分布式对象)中的随机崩溃
【发布时间】:2011-10-18 13:55:43
【问题描述】:

我有使用分布式对象的客户端服务器应用程序。有时我的代码工作正常,但有时我得到 *** NSDistantObject initWithCoder: 7 not given away for conn 0x100124c60 错误。有时我的应用程序会收到 SIGARRT。

Program received signal:  “SIGABRT”.
            sharedlibrary apply-load-rules all
            Data Formatters temporarily unavailable, will re-try after a 'continue'. (Not safe to call dlopen at this time.)

【问题讨论】:

    标签: objective-c cocoa


    【解决方案1】:

    在 iOS 编程中多次看到它。我总是内存不足。用于泄漏或不定式递归。 看到这个:Data Formatters temporarily unavailable, will re-try after a 'continue'Data Formatters temporarily unavailable, will re-try after a 'continue'

    “数据格式化程序暂时不可用,将在‘继续’后重试。”意味着您的代码中出现了非常严重的错误,甚至调试器都放弃了。正如 Dragyn 所说,这通常涉及某种形式的快速对象创建或递归调用。在您的代码中添加几行 NSLog 行,以帮助您了解您的代码正在走多远以及它可能在哪里循环/调用自身。

    来自:http://www.cocos2d-iphone.org/forum/topic/7314

    【讨论】:

    • 当我从“仪器泄漏”运行我的代码时,有时我会收到“应用程序意外退出”。
    • 为什么我得到 *** NSDistantObject initWithCoder: 7 not give away for conn 0x100124c60 这个错误?
    • 我不知道。你做错了什么——错得连调试器都跳出来了。您必须检查代码的每一行。很可能你有不平衡的保留和释放。
    • 好的,谢谢@vikingosegundo
    • 抱歉,我无能为力了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多