简体   繁体   中英

mach_msg_trap crash with xmlparser from iphone application

I am new with xCode and objective C.

I am using NSXMLParser to parse my xml data and then saved it to sqlite database.

Following is my code to start xml parsing.

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

My iPhone application will crash from xml parsing and debugger showing me following stack value:

#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

Please help me to reply why this crash happen.

Please also tell me that how to interpret this debugger stack value.

Thanks in advance,

Punita

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM