Re: error when calling function in another C file
Re: error when calling function in another C file
- Subject: Re: error when calling function in another C file
- From: Shripada Hebbar <email@hidden>
- Date: Wed, 2 Jan 2008 16:00:37 +0530
-(id)init
{
[super init];
MyCFunc(response);
The root cause of your problem is here. The member variable
response is not at all allocated and you seem to access it in your C
function.
Allocate it first before using it through zero bridging. The CF calls
may end up crashing
or have undefined behavior if the pointer is nil or is junk.
Regards
Shripada
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden