RE: has exited due to signal 10 (SIGBUS).
RE: has exited due to signal 10 (SIGBUS).
- Subject: RE: has exited due to signal 10 (SIGBUS).
- From: "Amit Kumar(R&D)" <email@hidden>
- Date: Fri, 17 Dec 2004 10:50:51 +0530
Thnks for reply.
Ok, I am sending the snippet of my code.
Code written in Handler.m file.
-(void)fillPProductList{
//NSAutoreleasePool *pool= [[NSAutoreleasePool alloc] init];
unsigned long thePID = 0;
int val;
int pc = [profile count];
pProductDict = [[NSMutableDictionary alloc]init];
QpmPublicationController *opc =[QpmPublicationController alloc];
for(val=0 ; val < pc ; val++) //profile contains the product ID
{
QpmPublicationProduct *abc = [QpmPublicationProduct alloc];
thePID = [[profile objectAtIndex:val] unsignedLongValue];
abc = [opc getPublicationProductInfo: thePID];
[pProductDict setObject: abc forKey:[NSNumber numberWithInt:
thePID]];
[abc release];
}
[opc release];
}
Note: If I comment the for loop then Application does not get crashe.
//Code written in QpmPublicationController.m file.
-(QpmPublicationProduct*) getPublicationProductInfo:(unsigned long) thePPID
{
NSString *fpath = @"../PublicationProducts/";
fpath = [fpath stringByAppendingString: [[NSNumber numberWithInt:
thePPID] stringValue]];
fpath = [fpath stringByAppendingString:@".xml"];
QpmXMLParsingHelper* aHelper = [QpmXMLParsingHelper alloc] ;
QpmPublicationProduct* aPP = [QpmPublicationProduct alloc] ;
aPP = [aHelper parseXMLFile:fpath forObject:[QpmPublicationProduct
class]];
return aPP;
}
Thanks
Amit
Regards
Amit Kumar (Ext.No. 9490)
Member - Software Development Group,IPG
Quark Media House Pvt. Ltd.
A-45, Phase VIII-B
Industrial Area
Mohali(Panjab)
-----Original Message-----
From: Clark Cox [mailto:email@hidden]
Sent: Thursday, December 16, 2004 8:25 PM
To: Amit Kumar(R&D)
Cc: email@hidden
Subject: Re: has exited due to signal 10 (SIGBUS).
On Thu, 16 Dec 2004 20:14:18 +0530, Amit Kumar(R&D) <email@hidden>
wrote:
>
>
> Hi ,
> My application get crashe, claiming that it 'has exited due to signal
> 10 (SIGBUS).
> If I debug the application , it tells me 'Program received signal:
> "EXC_BAD_ACCESS".
>
> Let me know the sulution of this problem.
You're going to need to provide more information than that.
EXC_BAD_ACCESS means that something in your program tried to access memory
that it didn't have the right to (i.e. you ran off the end of an array, you
sent a message using a pointer to an object that had already been
deallocated, you sent a message using a pointer that was uninitialized,
etc.)
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden