• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: error when calling function in another C file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: error when calling function in another C file
  • Next by Date: Re:NSLog not coming through
  • Previous by thread: Re: error when calling function in another C file
  • Next by thread: NSView in NSMenuItem
  • Index(es):
    • Date
    • Thread