【问题标题】:mach_msg_trap crash with xmlparser from iphone applicationmach_msg_trap 使用来自 iphone 应用程序的 xmlparser 崩溃
【发布时间】:2010-01-29 09:36:57
【问题描述】:

我是 xCode 和 Objective C 的新手。

我正在使用 NSXMLParser 解析我的 xml 数据,然后将其保存到 sqlite 数据库。

以下是我开始 xml 解析的代码。

NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData: data];
[xmlParser setDelegate: self];
[xmlParser setShouldResolveExternalEntities: YES];
[xmlParser parse];
[xmlParser release];

我的 iPhone 应用程序会因 xml 解析而崩溃,调试器会显示以下堆栈值:

#0 0x940de286 in mach_msg_trap
#1 0x940e5a7c in mach_msg
#2 0x0093d382 in CFRunLoopRunSpecific
#3 0x0093cc48 in CFRunLoopRunInMode
#4 0x0001f7ad in GSEventRunModal
#5 0x0001f872 in GSEventRun
#6 0x0168a003 in UIApplicationMain
#7 0x00002abc in main at main.m:14

请帮我回答为什么会发生这种崩溃。

还请告诉我如何解释这个调试器堆栈值。

提前致谢,

普尼塔

【问题讨论】:

    标签: iphone crash nsxmlparser


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2010-11-14
    • 1970-01-01
    • 1970-01-01
    • 2011-06-20
    • 2011-06-16
    • 1970-01-01
    • 1970-01-01
    • 2012-03-07
    相关资源
    最近更新 更多